From 34544d4dc0c738b603ba08e7baadbec3e1ec1a90 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Aug 2005 16:19:24 +0000 Subject: - Unrolled patch #29103: always encode apostrophes. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 155f5b2e8..7b6fe29da 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -649,7 +649,7 @@ function t($string, $args = 0) { * Encode special characters in a plain-text string for display as HTML. */ function check_plain($text) { - return htmlspecialchars($text); + return htmlspecialchars($text, ENT_QUOTES); } /** -- cgit v1.2.3