1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-31 13:40:08 +02:00

Use the new config item for checking valid filename characters.

This commit is contained in:
Mikael Roos
2014-11-21 19:34:01 +01:00
parent 26449a3236
commit da227d49dd

View File

@@ -128,7 +128,7 @@ $verbose = getDefined(array('verbose', 'v'), true, false);
$srcImage = get('src')
or errorPage('Must set src-attribute.');
preg_match($config['error_reporting'], $srcImage)
preg_match($config['valid_filename'], $srcImage)
or errorPage('Filename contains invalid characters.');
verbose("src = $srcImage");