• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved The SVG file … cannot be uploaded: Suspicious node 'svg' (Line: -1)

PierreLannoy

New Pleskian
Server operating system version
Cloudlinux 8.7
Plesk version and microupdate number
18.0.51 Update #1
Hello all!
When I create a new server (I do it via scripts), I'm setting branding options too. From some times now, my script triggers an error on the following command: plesk bin branding --custom-logo -file /tmp/header.svg
After investigation, I found the sanitization that is made by Plesk in such a case doesn't allow svg tags. The error message is The SVG file /tmp/header.svg cannot be uploaded: Suspicious node 'svg' (Line: -1)about… (too bad, svg tag is not allowed in svg files ;) )

Has anyone encountered this and if so how did you solve the problem?

Thanks in advance
 
We know of similar product issue for SVG files documented in Input - Standard .svg file not accepted as favicon file, workaround: place it into directory directly and Input - Standard .svg file not accepted as favicon file, workaround: place it into directory directly

Could you please try to run your file through Optimize SVG Images Online and try again with their output?

If it does not work afterwards, could you please provide your file here publicly or in a private message so that I can forward it to developers?
 
Hello Peter!
Thanks to you (and your remark), I decided to "dive in" a bit to understand why a standard compliant svg file was not correctly used by Plesk in this case.
What I understood after several trials/errors is that the Plesk sanitizer does not allow all options and flags for ?xml and !DOCTYPE tags and, therefore, doesn't fully supports svg dom subtrees.
If you want to understand, just try the following legit two lines:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
I got it, from now on I will systematically delete these 2 lines (so as not to waste time understanding which tags and attributes trigger the sanitizer error). But I still say that the sanitizer should accept files that strictly conform to the svg format…

Thanks for the help.
 
Back
Top