Commit 8aa130381b50874babea2d20b6282eadf970d42a

Authored by Jonathan Byrne
1 parent 99331192

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 {
... ...