mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
fix(regression): custom less validation check
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
3af0481f30
commit
3f864bafc8
|
@ -63,7 +63,7 @@ class ValidateCustomLess
|
|||
}
|
||||
|
||||
// Restrict what features can be used in custom LESS
|
||||
if (preg_match('/@import|data-uri\s*\(/i', $event->settings['custom_less'])) {
|
||||
if (isset($event->settings['custom_less']) && preg_match('/@import|data-uri\s*\(/i', $event->settings['custom_less'])) {
|
||||
$translator = $this->container->make(TranslatorInterface::class);
|
||||
|
||||
throw new ValidationException([
|
||||
|
|
Loading…
Reference in New Issue
Block a user