diff options
author | Nicofuma <github@nicofuma.fr> | 2015-03-29 19:50:19 +0200 |
---|---|---|
committer | Nicofuma <github@nicofuma.fr> | 2015-03-29 19:50:19 +0200 |
commit | d9f4964d914d5079025a2d86ae0a6d64df10cdaa (patch) | |
tree | 4f6fc540fdfb67e3b836cd742267d1b6f6797429 /phpBB/includes/acp/acp_attachments.php | |
parent | 499088b62f686482fd9419be83baef9a7c5ab1c2 (diff) | |
parent | 1da6b30cf04ff8fb06f38dd1ff8ab211af0a763f (diff) | |
download | forums-d9f4964d914d5079025a2d86ae0a6d64df10cdaa.tar forums-d9f4964d914d5079025a2d86ae0a6d64df10cdaa.tar.gz forums-d9f4964d914d5079025a2d86ae0a6d64df10cdaa.tar.bz2 forums-d9f4964d914d5079025a2d86ae0a6d64df10cdaa.tar.xz forums-d9f4964d914d5079025a2d86ae0a6d64df10cdaa.zip |
Merge pull request #3376 from marc1706/ticket/13568-asc
[ticket/13568] Validate imagick path as readable absolute path
closes #3376
Diffstat (limited to 'phpBB/includes/acp/acp_attachments.php')
-rw-r--r-- | phpBB/includes/acp/acp_attachments.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php index 2873b48fa4..67fba1094d 100644 --- a/phpBB/includes/acp/acp_attachments.php +++ b/phpBB/includes/acp/acp_attachments.php @@ -153,7 +153,7 @@ class acp_attachments 'img_create_thumbnail' => array('lang' => 'CREATE_THUMBNAIL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'img_max_thumb_width' => array('lang' => 'MAX_THUMB_WIDTH', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_min_thumb_filesize' => array('lang' => 'MIN_THUMB_FILESIZE', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['BYTES']), - 'img_imagick' => array('lang' => 'IMAGICK_PATH', 'validate' => 'path', 'type' => 'text:20:200', 'explain' => true, 'append' => ' <span>[ <a href="' . $this->u_action . '&action=imgmagick">' . $user->lang['SEARCH_IMAGICK'] . '</a> ]</span>'), + 'img_imagick' => array('lang' => 'IMAGICK_PATH', 'validate' => 'absolute_path', 'type' => 'text:20:200', 'explain' => true, 'append' => ' <span>[ <a href="' . $this->u_action . '&action=imgmagick">' . $user->lang['SEARCH_IMAGICK'] . '</a> ]</span>'), 'img_max' => array('lang' => 'MAX_IMAGE_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_link' => array('lang' => 'IMAGE_LINK_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), ) |