lib/pdfkit/source.rb in pdfkit-0.8.6 vs lib/pdfkit/source.rb in pdfkit-0.8.7

- old
+ new

@@ -44,9 +44,9 @@ def shell_safe_url url_needs_escaping? ? URI::DEFAULT_PARSER.escape(@source) : @source end def url_needs_escaping? - URI::DEFAULT_PARSER.unescape(@source) == @source + URI::DEFAULT_PARSER.escape(URI::DEFAULT_PARSER.unescape(@source)) != @source end end end