Disable SVG display be default
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 27 Feb 2019 02:07:23 +0000 (02:07 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 27 Feb 2019 02:07:23 +0000 (02:07 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14807 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 6ec1c62..4802dd1 100644 (file)
@@ -2516,7 +2516,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links
     // require_once(SM_PATH . 'functions/url_parser.php');  // for $MailTo_PReg_Match
 
     global $attachment_common_show_images, $view_unsafe_images,
-           $has_unsafe_images, $block_svg_display;
+           $has_unsafe_images, $allow_svg_display;
     /**
      * Don't display attached images in HTML mode.
      *
@@ -2546,7 +2546,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links
             "xmp",
             "xml",
             );
-    if ($block_svg_display)
+    if (!$allow_svg_display)
         $rm_tags_with_content[] = 'svg';
 
     $self_closing_tags =  Array(