Răsfoiți Sursa

fix backslash issue

causefx 8 ani în urmă
părinte
comite
5ce7c6711b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      api/functions/normal-functions.php

+ 1 - 1
api/functions/normal-functions.php

@@ -290,7 +290,7 @@ function qualifyURL($url) {
 	// Port
 	// Port
 	$port = (isset($digest['port'])?':'.$digest['port']:'');
 	$port = (isset($digest['port'])?':'.$digest['port']:'');
 	// Path
 	// Path
-	$path = (isset($digest['path'])?$digest['path']:'');
+	$path = (isset($digest['path']) && $digest['path'] !== '/'?$digest['path']:'');
 	// Output
 	// Output
 	return $scheme.'://'.$host.$port.$path;
 	return $scheme.'://'.$host.$port.$path;
 }
 }