summaryrefslogtreecommitdiff
path: root/public_html/functions.php
diff options
context:
space:
mode:
authorHorus32014-09-21 23:41:43 +0200
committerHorus32014-09-21 23:41:43 +0200
commit2eea1457e674e7ebb8a82bf6fd1a079f76a7632f (patch)
tree404b5666e3de94eff30589e5ab3f8b89ded7e15f /public_html/functions.php
parent2e3b69609088e37f5a716cfc8ad752f5ff0e7a90 (diff)
downloadvfs-2eea1457e674e7ebb8a82bf6fd1a079f76a7632f.tar.gz
using WordPress escape() function in the database layer now
Diffstat (limited to 'public_html/functions.php')
-rw-r--r--public_html/functions.php10
1 files changed, 5 insertions, 5 deletions
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;