Permalink
Browse files

CGI escape map URL.

  • Loading branch information...
mojombo committed Nov 28, 2010
1 parent 56919e5 commit d43564cf42c9bcd4226f0d10685eb67bb2ba4645
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/omniship.rb
  2. +1 −1 lib/omniship/ups/track/package.rb
View
@@ -2,6 +2,7 @@
# stdlib
require 'yaml'
+require 'cgi'
# 3rd Party
require 'handsoap'
@@ -40,7 +40,7 @@ def activity_map_url
activity.select do |act|
act.location.address.city
end.map do |act|
- act.location.address.to_s
+ CGI::escape(act.location.address.to_s)
end.uniq.reverse
path_parts = []

0 comments on commit d43564c

Please sign in to comment.