return $data;
}
+function html_cleanup(&$parms)
+{
+ foreach($parms as $name => $value) {
+// $value = @html_entity_decode($value, ENT_QUOTES, $_SESSION['language']->encoding);
+ if (is_array($value))
+ html_cleanup($parms[$name]);
+ else
+ $parms[$name] = @htmlspecialchars($value, ENT_QUOTES, $_SESSION['language']->encoding);
+ }
+ reset($parms); // needed for direct key() usage later throughout the sources
+}
+
+
function check_page_security($page_security)
{
}
if (!isset($_SESSION["wa_current_user"]))
$_SESSION["wa_current_user"] = new current_user();
+html_cleanup($_GET);
+html_cleanup($_POST);
+html_cleanup($_REQUEST);
+html_cleanup($_SERVER);
+
$SysPrefs = &$_SESSION['SysPrefs'];
// POST vars cleanup needed for direct reuse.