Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wa-system/design/actions/waDesign.actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down