fix(audit L7): Bild-Variablen lassen ' ( ) ; { } \ nicht mehr zu (kein Ausbruch aus url(...) in der :root-Regel)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
1b3ef552e7
commit
06b798ab37
@@ -33,7 +33,8 @@ final class VariableValue
|
||||
|
||||
private const URL = '/^(?:https?:\/\/[^\s<>"]+|\/(?![\/\\\\])[^\s<>"]*|mailto:[^\s<>"]+|tel:[^\s<>"]+)$/iD';
|
||||
|
||||
private const WEB_URL = '/^https?:\/\/[^\s<>"]+$/iD';
|
||||
/** No ' ( ) ; { } \ either (audit L7): Divi writes an image value unescaped into url(...) inside the :root rule. */
|
||||
private const WEB_URL = '/^https?:\/\/[^\s<>"\'(){};\\\\]+$/iD';
|
||||
|
||||
/** @return string|null Null when $value is valid for $type, else a German message. */
|
||||
public static function check(string $type, string $value): ?string
|
||||
|
||||
Reference in New Issue
Block a user