1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Missed string length

This commit is contained in:
e107steved
2008-10-04 16:10:55 +00:00
parent 466b70c50a
commit 9eae31a6b2

View File

@@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/upload_handler.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/upload_handler.php,v $
| $Revision: 1.16 $ | $Revision: 1.17 $
| $Date: 2008-08-25 10:46:33 $ | $Date: 2008-10-04 16:10:55 $
| $Author: e107steved $ | $Author: e107steved $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
*/ */
@@ -775,7 +775,7 @@ function get_filetypes($file_mask = FALSE, $filename = '')
{ {
if ($filename != '') if ($filename != '')
{ {
if (strtolower(substr($filename) == '.xml')) if (strtolower(substr($filename,-4) == '.xml'))
{ {
return get_XML_filetypes($filename, $file_mask); return get_XML_filetypes($filename, $file_mask);
} }