OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72eb89
)
BugTrack2/343: Use ENT_COMPAT at htmlspecialchars
author
umorigu
<umorigu@gmail.com>
Sun, 1 Jun 2014 21:04:09 +0000
(06:04 +0900)
committer
umorigu
<umorigu@gmail.com>
Sun, 1 Jun 2014 21:04:09 +0000
(06:04 +0900)
Use ENT_COMPAT for 2nd- $flags parameter at 'htmlspecialchars' instead of
ENT_QUOTES because of the compatibility of PukiWiki 1.4.7
lib/func.php
patch
|
blob
|
history
diff --git
a/lib/func.php
b/lib/func.php
index
43db3dd
..
cc9c0f3
100644
(file)
--- a/
lib/func.php
+++ b/
lib/func.php
@@
-702,7
+702,7
@@
function csv_implode($glue, $pieces)
}
// Sugar with default settings
-function htmlsc($string = '', $flags = ENT_
QUOTES
, $charset = CONTENT_CHARSET)
+function htmlsc($string = '', $flags = ENT_
COMPAT
, $charset = CONTENT_CHARSET)
{
return htmlspecialchars($string, $flags, $charset); // htmlsc()
}