diff --git a/wa-system/design/actions/waDesign.actions.php b/wa-system/design/actions/waDesign.actions.php index 21116ca7e..d39c08b11 100644 --- a/wa-system/design/actions/waDesign.actions.php +++ b/wa-system/design/actions/waDesign.actions.php @@ -1051,7 +1051,7 @@ protected function isImageValid(waRequestFile $f, &$error = '') { // If you add svg here, then on sites with cdn such pictures will not be loaded. // Design themes must use the $wa_real_theme_url variable for settings with the image type. - $allowed = array('jpg', 'jpeg', 'png', 'gif'); + $allowed = array('jpg', 'jpeg', 'png', 'gif', 'svg'); if (!in_array(strtolower($f->extension), $allowed)) { $error = sprintf(_ws("Files with extensions %s are allowed only."), '*.'.implode(', *.', $allowed)); return false;