Merge pull request #61 from brossi/master

Allow @ in URLs
lxc
Dev Random 10 years ago
commit 93b39496c4

@ -27,7 +27,7 @@ def sanitize(str, where)
end
def sanitize_path(str, where)
raise "unsanitary string in #{where}" if (str =~ /[^\w\/.:+-]/)
raise "unsanitary string in #{where}" if (str =~ /[^@\w\/.:+-]/)
str
end

@ -17,7 +17,7 @@ def sanitize(str, where)
end
def sanitize_path(str, where)
raise "unsanitary string in #{where}" if (str =~ /[^\w\/.-]/)
raise "unsanitary string in #{where}" if (str =~ /[^@\w\/.:+-]/)
str
end

@ -17,7 +17,7 @@ def sanitize(str, where)
end
def sanitize_path(str, where)
raise "unsanitary string in #{where}" if (str =~ /[^@\w\/. -]/)
raise "unsanitary string in #{where}" if (str =~ /[^@\w\/.:+-]/)
str
end

Loading…
Cancel
Save