8000 [VarDumper] Minor tweaks to html/css dumps by nicolas-grekas · Pull Request #22455 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[VarDumper] Minor tweaks to html/css dumps #22455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

nicolas-grekas
Copy link
Member
@nicolas-grekas nicolas-grekas commented Apr 17, 2017
Q A
Branch? 3.2
Bug fix? yes (minor/DX)
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

@@ -496,7 +496,7 @@ protected function style($style, $value, $attr = array())
$attr['href'] = $href;
}
if (isset($attr['href'])) {
$v = sprintf('<a href="%s">%s</a>', esc($this->utf8Encode($attr['href'])), $v);
$v = sprintf('<a href="%s" target="_blank">%s</a>', esc($this->utf8Encode($attr['href'])), $v);
Copy link
Contributor
@acrobat acrobat Apr 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's good to also add the rel="noopener noreferrer" attribute to avoid security issues? See https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerability-ever-96e328301f4c

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nicolas-grekas nicolas-grekas merged commit 3b83fe1 into symfony:3.2 Apr 18, 2017
nicolas-grekas added a commit that referenced this pull request Apr 18, 2017
This PR was merged into the 3.2 branch.

Discussion
----------

[VarDumper] Minor tweaks to html/css dumps

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes (minor/DX)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

3b83fe1 [VarDumper] Minor tweaks to html/css dumps
@nicolas-grekas nicolas-grekas deleted the fix-open branch April 18, 2017 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0