From 47af30e0b68acbf25b01f3fe707cfe2d0b441cf8 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 20 May 2014 07:25:15 +0100 Subject: [PATCH] Include common settings and xssClean output inlcude_once the settings-common.php file so we have the xssClean function Set $req to the xssClean'd value or blank Also xssClean other strings that are output --- lib/headers.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/headers.php b/lib/headers.php index 3834271..e8f9aaf 100644 --- a/lib/headers.php +++ b/lib/headers.php @@ -1,6 +1,6 @@
CSRF issue:
- REQUEST: ".$_REQUEST["csrf"]."
- SESSION: ".$_SESSION["csrf"]."
- FILE: ".$_SERVER["SCRIPT_NAME"]."
- GET: ".var_export($_GET, true)."
- POST: ".var_export($_POST, true)."
+ REQUEST: ".$req."
+ SESSION: ".xssClean($_SESSION["csrf"],"html")."
+ FILE: ".xssClean($_SERVER["SCRIPT_NAME"],"html")."
+ GET: ".xssClean(var_export($_GET, true),"html")."
+ POST: ".xssClean(var_export($_POST, true),"html")."

Many thanks!"); }