Skip to content

Commit

Permalink
Added support for .docx in document validator
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdunn authored and brendo committed Oct 8, 2011
1 parent 7618198 commit 05e3cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphony/lib/toolkit/util.validators.php
Expand Up @@ -11,7 +11,7 @@

$upload = array(
'image' => '/\.(?:bmp|gif|jpe?g|png)$/i',
'document' => '/\.(?:doc|pdf|rtf|txt)$/i',
'document' => '/\.(?:docx?|pdf|rtf|txt)$/i',
);

if(file_exists(MANIFEST . '/validators.php') && is_readable(MANIFEST . '/validators.php')) include(MANIFEST . '/validators.php');
Expand Down

0 comments on commit 05e3cb2

Please sign in to comment.