mirror of
https://github.com/getgrav/grav.git
synced 2026-09-10 23:19:28 +02:00
Fix for #196 - + in an image filename
This commit is contained in:
@@ -257,7 +257,7 @@ trait ParsedownGravTrait
|
||||
$page_path = $full_path;
|
||||
} else {
|
||||
// save the filename if a file is part of the path
|
||||
$filename_regex = "/([\w\d-_]+\.([a-zA-Z]{2,4}))$/";
|
||||
$filename_regex = "/([\w\d-_\+]+\.([a-zA-Z]{2,4}))$/";
|
||||
if (preg_match($filename_regex, $full_path, $matches)) {
|
||||
if ($matches[2] != 'md') {
|
||||
$filename = '/' . $matches[1];
|
||||
|
||||
Reference in New Issue
Block a user