mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-30 10:59:51 +02:00
Adding security check that image filename is always below the path
`image_path` as specified in `img_config.php` #37.
This commit is contained in:
@@ -17,6 +17,13 @@ return array(
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check that the imagefile is a file below 'image_path' using realpath().
|
||||
*/
|
||||
'image_path_constraint' => true,
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A regexp for validating characters in the image filename.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user