https://bugzilla.wikimedia.org/show_bug.cgi?id=21976


Andrea Di Menna <ninn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ninn...@gmail.com




--- Comment #6 from Andrea Di Menna <ninn...@gmail.com>  2010-01-05 11:13:59 
UTC ---
The problem is the following:

# from _footmenu_simple.html.haml

the href for that anchor is retrieved calling -> temp_url(@article.title)
where

    def temp_url(path)
      %|#{redirect_url}?to=#{path_site}/wiki/#{path_encoded(path)}|
    end

and 

    def path_encoded(path)
      CGI::escape(path)
    end

But

path = @article.title is using HTML entities in the form "&#x<hex value>;" and
when calling CGI::escape(path) those chars get URL encoded (that is using
%<code> form).

Before calling CGI::escape the @article.title should be HTML unescaped (note
CGI::unescapeHTML is not working at all).
Maybe you want to check http://po-ru.com/projects/html-entities/


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to