Skip to content

Commit b3f7109

Browse files
authored
Corrige scriptname
1 parent 0aa5973 commit b3f7109

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*/
3232
$scriptName = isset($_SERVER['SCRIPT_NAME'])? $_SERVER['SCRIPT_NAME']: '/index.php';
3333
$scriptName = dirname($_SERVER['SCRIPT_NAME'], 2);
34+
$scriptName = trim($scriptName, '\\');
3435
$serverName = $_SERVER['SERVER_NAME'];
3536
$base = $serverName . PORT . $scriptName;
3637
$base = str_replace('//', '/', $base);

0 commit comments

Comments
 (0)