Skip to content

Commit

Permalink
Fixes rewrite of download.php to short version /dl
Browse files Browse the repository at this point in the history
  • Loading branch information
slackero committed Aug 19, 2021
1 parent 67a007e commit 4db6ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/inc_front/content.func.inc.php
Expand Up @@ -1884,7 +1884,7 @@ function deprecated_image_resized($matches) {
}

if (PHPWCMS_REWRITE && strpos($content['all'], 'download.php?f=') !== false) {
$content["all"] = str_replace('download.php?f=', 'dl/', $content["all"]);
$content["all"] = preg_replace('/download.php\?f=([a-f0-9]{32,32}).*?"/', 'dl/$1/"', $content["all"]);
}

// Force Image extensions to WebP
Expand Down

0 comments on commit 4db6ac2

Please sign in to comment.