Permalink
Browse files

Fixed UrlHelper#current_page? to behave even when url-escaped entitie…

…s are present (closes #3929) [jeremy@planetargon.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3937 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 79a82e3 commit 3dc7f7603785c1173df5c24f8b76323f7a795443 @dhh dhh committed Mar 18, 2006
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed UrlHelper#current_page? to behave even when url-escaped entities are present #3929 [jeremy@planetargon.com]
+
* Add ability for relative_url_root to be specified via an environment variable RAILS_RELATIVE_URL_ROOT. [isaac@reuben.com, Nicholas Seckar]
* Fixed link_to "somewhere", :post => true to produce valid XHTML by using the parentnode instead of document.body for the instant form #3007 [Bob Silva]
@@ -235,7 +235,7 @@ def mail_to(email_address, name = nil, html_options = {})
# Returns true if the current page uri is generated by the options passed (in url_for format).
def current_page?(options)
- url_for(options) == @controller.request.request_uri
+ CGI.escapeHTML(url_for(options)) == @controller.request.request_uri
end
private

0 comments on commit 3dc7f76

Please sign in to comment.