aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-02-18 15:01:39 +0100
committerKevin Chabowski <kevin@kch42.de>2012-02-18 15:01:39 +0100
commit757adffdf0dfd912a5bd877ed915ca446b1bc973 (patch)
treee2e535f9f048f2356c8308668bf3e71638932615
parentfffbcc480c8afa679e3a9ffee8c145dc3d4f5a28 (diff)
downloadratatoeskr-cms-757adffdf0dfd912a5bd877ed915ca446b1bc973.tar.gz
ratatoeskr-cms-757adffdf0dfd912a5bd877ed915ca446b1bc973.tar.bz2
ratatoeskr-cms-757adffdf0dfd912a5bd877ed915ca446b1bc973.zip
htmlesc now uses htmlspecialchars instead of htmlentities
-rw-r--r--ratatoeskr/sys/utils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php
index d6093ca..c2f8e66 100644
--- a/ratatoeskr/sys/utils.php
+++ b/ratatoeskr/sys/utils.php
@@ -186,7 +186,7 @@ function strleft($s1, $s2) {
/*
* Function: htmlesc
- * Escape HTML (shorter than htmlentities($text, ENT_QUOTES, "UTF-8"))
+ * Escape HTML (shorter than htmlspecialchars)
*
* Parameters:
* $text - Input text.
@@ -196,7 +196,7 @@ function strleft($s1, $s2) {
*/
function htmlesc($text)
{
- return htmlentities($text, ENT_QUOTES, "UTF-8");
+ return htmlspecialchars($text, ENT_QUOTES, "UTF-8");
}
/*