forked from hhvm/xhp-lib
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invalid escaping in renderBaseAttrs()
Summary: Second parameter of htmlspecialchars() is flags (int), not bool. Value true is understood as 1 which means: quote single quotes, not double quotes Test Plan: New test
- Loading branch information
Jakub Vrana
committed
Feb 15, 2012
1 parent
0ff0c6d
commit 0a99f67
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--TEST-- | ||
Quotes in attribute | ||
--FILE-- | ||
<?php | ||
class xhp_a {} | ||
$quote = '"'; | ||
echo <a b={$quote}>c</a>; | ||
--EXPECT-- | ||
<a b=""">c</a> |