Commit d62224dc authored by Dries's avatar Dries

- Patch #864938 by antgiant, Stevel: can't upload .ico favicon.

parent 7abecb0e
......@@ -676,8 +676,10 @@ function system_theme_settings_validate($form, &$form_state) {
}
}
$validators = array('file_validate_extensions' => array('ico png gif jpg jpeg apng svg'));
// Check for a new uploaded favicon.
$file = file_save_upload('favicon_upload');
$file = file_save_upload('favicon_upload', $validators);
if (isset($file)) {
// File upload was attempted.
if ($file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment