Fix directory separator in Pico::getUrlFromPath()
This commit is contained in:
parent
ad729a99c4
commit
f3b5a92247
1 changed files with 2 additions and 0 deletions
|
@ -2260,6 +2260,8 @@ class Pico
|
|||
*/
|
||||
public function getUrlFromPath($absolutePath)
|
||||
{
|
||||
$absolutePath = str_replace('\\', '/', $absolutePath);
|
||||
|
||||
$basePath = '';
|
||||
if (isset($_SERVER['SCRIPT_FILENAME']) && strrpos($_SERVER['SCRIPT_FILENAME'], '/')) {
|
||||
$basePath = dirname($_SERVER['SCRIPT_FILENAME']);
|
||||
|
|
Loading…
Add table
Reference in a new issue