[MacRuby] #1392: FlikrDemo example can create bad URLs
MacRuby
ruby-noreply at macosforge.org
Fri Sep 23 08:40:12 PDT 2011
#1392: FlikrDemo example can create bad URLs
------------------------------------+---------------------------------------
Reporter: mcphail_colin@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords: FlikrDemo
------------------------------------+---------------------------------------
Adding a new Flikr source that includes characters not allowed in an URL
(e.g. 'Edinburgh Castle' which contains a space) causes a 'malformed URL'
exception.
I attach a patched version of FlikrDemoController.rb that uses NSString's
stringByAddingPercentEscapesUsingEncoding method to escape illegal
characters.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1392>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list