Skip to content

Commit

Permalink
Fixes #4628 - Static URLs containing /./
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Dec 2, 2021
1 parent f8d5157 commit aff6daf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e107_handlers/e_parse_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,10 @@ public function staticUrl($path = null, $opts = array())
$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.
Expand Down

0 comments on commit aff6daf

Please sign in to comment.