1
0
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:
Mikael Roos
2014-11-21 19:57:11 +01:00
parent 4b64237a4c
commit 78ac29752e
3 changed files with 31 additions and 0 deletions

View File

@@ -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.
*/