Parsing image URLs

15 views
Skip to first unread message

BrianS

unread,
Nov 30, 2011, 2:57:47 PM11/30/11
to dompd...@googlegroups.com
When dompdf parses a URL it takes the URL as supplied. This is the desired and expected behavior, but I have found one case where some cleaning up may be warranted. If the user supplies a URL to a file and inadvertently includes a space at the end of the URL the image will not be processed. This is, of course, a mistake on the part of the user and I am loath to include any functionality that could have adverse side affect. But trimming spaces from the beginning and end of any image URL may be safe.

Any thoughts?

Reply all
Reply to author
Forward
0 new messages