aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-10-03 10:20:57 +0000
committerz0rglub <z0rglub@piwigo.org>2004-10-03 10:20:57 +0000
commita896587970450b289ee99191265b076d82e5c165 (patch)
treee51171f39f28f51e3574b70d24f65ae9ad888ea0 /upload.php
parent94aadfe7ff735dc69f21652370a75f4da2a2087d (diff)
bug 40 : case issue for uploaded pictures
git-svn-id: http://piwigo.org/svn/branches/release-1_3@544 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/upload.php b/upload.php
index 68bfae66b..986b388cc 100644
--- a/upload.php
+++ b/upload.php
@@ -30,13 +30,13 @@
function validate_upload( $temp_name, $my_max_file_size,
$image_max_width, $image_max_height )
{
- global $lang;
+ global $conf, $lang;
$result = array();
$result['error'] = array();
//echo $_FILES['picture']['name']."<br />".$temp_name;
$extension = get_extension( $_FILES['picture']['name'] );
- if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png' )
+ if ( in_array( $extension, $conf['picture_ext'] )
{
array_push( $result['error'], $lang['upload_advise_filetype'] );
return $result;