We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aa5973 commit b3f7109Copy full SHA for b3f7109
1 file changed
src/init.php
@@ -31,6 +31,7 @@
31
*/
32
$scriptName = isset($_SERVER['SCRIPT_NAME'])? $_SERVER['SCRIPT_NAME']: '/index.php';
33
$scriptName = dirname($_SERVER['SCRIPT_NAME'], 2);
34
+$scriptName = trim($scriptName, '\\');
35
$serverName = $_SERVER['SERVER_NAME'];
36
$base = $serverName . PORT . $scriptName;
37
$base = str_replace('//', '/', $base);
0 commit comments