Browse code

Fix some bugs in svg insert tag code

Benjamin Roth authored on19/04/2020 14:55:21
Showing1 changed files
... ...
@@ -23,13 +23,11 @@ class InsertTagsListener
23 23
 
24 24
       if ($elements[0] == 'svg')
25 25
       {
26
-          if ($elements[1] && stripos('::', $elements[1]) !== 0)
26
+          if ($elements[2])
27 27
           {
28
-              $fragments = explode('::', $elements[1]);
29
-              $elements[1] = $fragments[0];
30
-              $strPrefix =  $fragments[1];
31
-              if (isset($fragments[2])) {
32
-                  $strId = $fragments[2];
28
+              $strPrefix =  $elements[2];
29
+              if (isset($elements[3])) {
30
+                  $strId = $elements[3];
33 31
               }
34 32
           }
35 33
           if ($elements[1])