mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 06:34:06 +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
|
// 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);
|
$translator = $this->container->make(TranslatorInterface::class);
|
||||||
|
|
||||||
throw new ValidationException([
|
throw new ValidationException([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user