diff options
author | Rich Manalang <rich.manalang@gmail.com> | 2008-11-06 20:02:32 -0800 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-07 19:33:18 +0000 |
commit | d3ec1d3c22904c8801945b56956466f8ead9f3c1 (patch) | |
tree | 057d921a42fe92bde9103a52d697da575a796186 /actionpack/lib/action_view | |
parent | 32a5cfcd7f8d14407f0c00ce2cdc82b1b568438e (diff) | |
download | rails-d3ec1d3c22904c8801945b56956466f8ead9f3c1.tar.gz rails-d3ec1d3c22904c8801945b56956466f8ead9f3c1.tar.bz2 rails-d3ec1d3c22904c8801945b56956466f8ead9f3c1.zip |
auto_link view helper was failing on URLs with colons after a query param
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1341 state:committed]
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index d80e7c6e57..36f7575652 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -559,7 +559,7 @@ module ActionView (?:\.[-\w]+)* # remaining subdomains or domain (?::\d+)? # port (?:/(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))*)* # path - (?:\?[\w\+@%&=.;-]+)? # query string + (?:\?[\w\+@%&=.;:-]+)? # query string (?:\#[\w\-]*)? # trailing anchor ) ([[:punct:]]|<|$|) # trailing text @@ -598,4 +598,4 @@ module ActionView end end end -end
\ No newline at end of file +end |