1
0
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:
Cameron
2021-12-02 15:36:05 -08:00
parent f8d5157121
commit aff6daf590

View File

@@ -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.