mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-18 19:59:30 +03:00
Merge pull request #192 from jbrunemann/master
#188 only replace basename when there is actually something to replace
This commit is contained in:
commit
059c679193
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ include_once('includes/config.inc.php');
|
|||
include_once('includes/session.inc.php');
|
||||
include_once('includes/misc.inc.php');
|
||||
|
||||
$testpath = str_replace(basename($_SERVER['REQUEST_URI']), $authdb, $_SERVER['REQUEST_URI']);
|
||||
$testpath = !empty(basename($_SERVER['REQUEST_URI'])) ? str_replace(basename($_SERVER['REQUEST_URI']), $authdb, $_SERVER['REQUEST_URI']) : '/' . $authdb;
|
||||
$testurl = $_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST'].$testpath;
|
||||
|
||||
global $errormsg, $blocklogin;
|
||||
|
|
Loading…
Add table
Reference in a new issue