commit b7c9daf12244ac464a611e778d8588c3012ea0c0
parent 660bc6adae282615807182664b5030881b67df48
Author: Scott Bonds <scott@ggr.com>
Date: Wed, 17 Sep 2014 09:41:40 -0700
add support for special chars in mbox source uri
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
@@ -24,11 +24,11 @@ class MBox < Source
raise ArgumentError, "mbox URI ('#{uri}') cannot have a host: #{uri.host}" if uri.host
raise ArgumentError, "mbox URI must have a path component" unless uri.path
@f = nil
- @path = uri.path
+ @path = URI.decode uri.path
else
@f = uri_or_fp
@path = uri_or_fp.path
- @expanded_uri = "mbox://#{@path}"
+ @expanded_uri = "mbox://#{URI.encode @path}"
end
super uri_or_fp, usual, archived, id