Skip to content

Commit 25745de

Browse files
susnuxsolracsf
andauthored
Update lib/private/Preview/SVG.php
Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent af70600 commit 25745de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Preview/SVG.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function canBeProcessed(string $content): bool {
8989
// Strip all non-printable/control characters except newlines/tabs
9090
$content = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/', '', $content);
9191
// check for any potential external reference (include custom namespace prefix)
92-
if (preg_match('/["\s\']([a-z_][a-z0-9_.]*:)?href\s*=/i', $content)) {
92+
if (preg_match('/["\s\']([a-z_][a-z0-9_.-]*:)?href\s*=/i', $content)) {
9393
return false;
9494
}
9595
return true;

0 commit comments

Comments
 (0)