From 2eea1457e674e7ebb8a82bf6fd1a079f76a7632f Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sun, 21 Sep 2014 23:41:43 +0200 Subject: using WordPress escape() function in the database layer now --- public_html/functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'public_html/functions.php') diff --git a/public_html/functions.php b/public_html/functions.php index 51979da..8c998fc 100644 --- a/public_html/functions.php +++ b/public_html/functions.php @@ -3,21 +3,21 @@ function failure($reason, $httpcode, $ajax = true, $heading = NULL){ # send header with $httpcode - header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode) + header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode); # just echo the reason to the ajax response if($ajax){ - echo htmlentities($reason); - exit + echo $reason; + exit; } // TODO: Put pretty HTML here, please # print full error page if($heading != NULL) - echo htmlentities($heading); + echo $heading; - echo htmlentities($reason); + echo $reason; # exit the script here exit; -- cgit v1.2.3