Commit 34544d4d authored by Dries's avatar Dries
Browse files

- Unrolled patch #29103: always encode apostrophes.

parent 8f32c39d
...@@ -649,7 +649,7 @@ function t($string, $args = 0) { ...@@ -649,7 +649,7 @@ function t($string, $args = 0) {
* Encode special characters in a plain-text string for display as HTML. * Encode special characters in a plain-text string for display as HTML.
*/ */
function check_plain($text) { function check_plain($text) {
return htmlspecialchars($text); return htmlspecialchars($text, ENT_QUOTES);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment