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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user