X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fmedia%2FSVGMetadataExtractor.php;h=e52bf0b26a1c7fad1e2a899d8d005eba454b824a;hb=57e631b78c111d7451b4ea1e8b44a464bcca1b04;hp=ee467b084f91257b7aafd350128015b6cf8eae71;hpb=b205a84d49fc19c606e6c51d8945a43b6884d66f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index ee467b084f..e52bf0b26a 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -325,7 +325,7 @@ class SVGReader { if ( $this->reader->getAttribute( 'viewBox' ) ) { // min-x min-y width height - $viewBox = preg_split( '/\s+/', trim( $this->reader->getAttribute( 'viewBox' ) ) ); + $viewBox = preg_split( '/\s*[\s,]\s*/', trim( $this->reader->getAttribute( 'viewBox' ) ) ); if ( count( $viewBox ) == 4 ) { $viewWidth = $this->scaleSVGUnit( $viewBox[2] ); $viewHeight = $this->scaleSVGUnit( $viewBox[3] );