X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=73923741b738187335a8baa005930406b8e3459a;hb=ac86042c0f4d7f15e3422d3fefdd6b7f70672129;hp=6e783373f94d7d8982767a2357e1de31b6c98864;hpb=66b76b3be910e0f5dc5a26384c4cfce20579a70d;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 6e783373..73923741 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -316,7 +316,7 @@ function html_cleanup(&$parms) if (is_array($value)) html_cleanup($parms[$name]); else - $parms[$name] = @htmlspecialchars($value, ENT_QUOTES, $_SESSION['language']->encoding); + $parms[$name] = @htmlspecialchars($value, ENT_QUOTES, $_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding); } reset($parms); // needed for direct key() usage later throughout the sources } @@ -484,7 +484,8 @@ if (!defined('FA_LOGOUT_PHP_FILE')){ { // strip ajax marker from uri, to force synchronous page reload $_SESSION['timeout'] = array( 'uri'=>preg_replace('/JsHttpRequest=(?:(\d+)-)?([^&]+)/s', - '', @htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, $_SESSION['language']->encoding)), + '', @htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, $_SESSION['language']->encoding=='iso-8859-2' + ? 'ISO-8859-1' : $_SESSION['language']->encoding)), 'post' => $_POST); include($path_to_root . "/access/login.php");