aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-05-15 23:38:24 +0200
committerJoas Schilling <coding@schilljs.com>2024-05-16 10:01:33 +0200
commit4286660983525bb9be46e5d84d9f0b87634df53c (patch)
tree795e15f2b4836e76e86fd57207751a0a321415ca /lib
parentbd6989d365b465857e8a6b722dcbc77c520f3f9d (diff)
downloadnextcloud-server-4286660983525bb9be46e5d84d9f0b87634df53c.tar.gz
nextcloud-server-4286660983525bb9be46e5d84d9f0b87634df53c.zip
fix: Extend SVG reference check
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/SVG.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php
index 207c9dfb021..0400038d980 100644
--- a/lib/private/Preview/SVG.php
+++ b/lib/private/Preview/SVG.php
@@ -50,7 +50,7 @@ class SVG extends ProviderV2 {
}
// Do not parse SVG files with references
- if (stripos($content, 'xlink:href') !== false) {
+ if (preg_match('/["\s](xlink:)?href\s*=/i', $content)) {
return null;
}