mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +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),
|
||||
);
|
||||
|
||||
// Quickfix for any '/./' that may occur.
|
||||
$srch[] = '/./';
|
||||
$repl[] = '/';
|
||||
|
||||
$ret = str_replace($srch, $repl, $path);
|
||||
|
||||
if(strpos($ret, 'http') !== 0) // if not converted, check media folder also.
|
||||
|
Reference in New Issue
Block a user