From aff6daf5904c3797e24452920c3846294430a95b Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 2 Dec 2021 15:36:05 -0800 Subject: [PATCH] Fixes #4628 - Static URLs containing /./ --- e107_handlers/e_parse_class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 1a3f1a828..c5f6b0b5f 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -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.