From 548e1bac7b804d5506469956c4fbf2e8db202963 Mon Sep 17 00:00:00 2001 From: kadurinho Date: Mon, 2 Nov 2020 13:15:07 +0200 Subject: [PATCH] Add SVG support --- wa-system/design/actions/waDesign.actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;