mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #4628 - Static URLs containing /./
This commit is contained in:
@@ -2311,6 +2311,10 @@ class e_parse
|
|||||||
$http . $base . str_replace('../', '', e_CACHE_IMAGE),
|
$http . $base . str_replace('../', '', e_CACHE_IMAGE),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Quickfix for any '/./' that may occur.
|
||||||
|
$srch[] = '/./';
|
||||||
|
$repl[] = '/';
|
||||||
|
|
||||||
$ret = str_replace($srch, $repl, $path);
|
$ret = str_replace($srch, $repl, $path);
|
||||||
|
|
||||||
if(strpos($ret, 'http') !== 0) // if not converted, check media folder also.
|
if(strpos($ret, 'http') !== 0) // if not converted, check media folder also.
|
||||||
|
Reference in New Issue
Block a user