Commit ffc921e9d2a494d5a02f12f18566adb4d6110d4f

Authored by jonathan_byrne
1 parent 1e5647f5

KTS-3311

"Custom Error page graphics not displaying in windows XP"
Fixed. Added a check to remove unwanted / or \ in then rooturl.

Committed By: Jonathan Byrne
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8391 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 0 deletions
customerrorpage.php
... ... @@ -59,6 +59,8 @@ if (array_key_exists('sErrorMessage', $_SESSION))
59 59 $sHost = $_SERVER['HTTP_HOST'];
60 60 $sScriptName = dirname($_SERVER['SCRIPT_NAME']);
61 61 $sRoot = $sHost.$sScriptName;
  62 +$sLastChar = substr($sScriptName, -1, 1);
  63 +$sScriptName = ($sLastChar == '\\' || $sLastChar == '/') ? substr($sScriptName, 0, -1) : $sScriptName;
62 64 $bSSLEnabled = false;
63 65 if ($_SERVER['HTTPS'] === 'on')
64 66 {
... ...