OSDN Git Service

BugTrack2/343: Use ENT_COMPAT at htmlspecialchars
authorumorigu <umorigu@gmail.com>
Sun, 1 Jun 2014 21:04:09 +0000 (06:04 +0900)
committerumorigu <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

index 43db3dd..cc9c0f3 100644 (file)
@@ -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()
 }