After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 494315 - HREF attributes do not decode ampersand entity properly
HREF attributes do not decode ampersand entity properly
Status: RESOLVED WONTFIX
Product: GtkHtml
Classification: Other
Component: Parsing
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
gtkhtml-maintainers
gnome[unmaintained]
: 488348 534730 542007 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-06 21:28 UTC by Jonathan Briggs
Modified: 2017-02-09 13:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Briggs 2007-11-06 21:28:45 UTC
Please describe the problem:
Many sources claim that ampersands that are part of a query parameter should be proper HTML / XHTML entities.  And indeed, Firefox and IE appear to handle this properly, but GTKHTML does not.


Steps to reproduce:
<a href="http://www.example.com/example.php?param1=joe&amp;param2=fred">www.example.com</a>


Actual results:
gtkhtml sends it with &amp; intact, messing everything up.

Expected results:
This should be sent to the web server as example.php?param1=joe&param2=fred

Does this happen every time?
Yes

Other information:
Comment 1 Rodney Dawes 2007-11-06 21:50:12 UTC
This appears to work correclty for me in testgtkhtml. It sounds like you are escaping the URL in your code, and then not unescaping it when you send it to the server.
Comment 2 Jonathan Briggs 2007-11-06 22:42:15 UTC
I did forget to mention that I'm using version 3.16.1, not the latest test version.  I'm using it built into Evolution.  I send myself an email containing a link as in the example, and the webserver gets the &amp; instead of the &.

So, are you saying it is a Evolution bug?
Comment 3 Rodney Dawes 2007-11-07 00:12:06 UTC
That is not gtkhtml2. It is gtkhtml.
Comment 4 Jonathan Briggs 2007-11-07 00:43:35 UTC
D'oh!

Thanks.  Sorry.
Comment 5 André Klapper 2008-11-23 16:01:30 UTC
*** Bug 534730 has been marked as a duplicate of this bug. ***
Comment 6 Milan Crha 2011-02-10 16:08:05 UTC
Might be this bug #485700, which is in since GtkHTML-3.17.1, but there were more fixes in this area, like in bug #563867, which is about evolution 2.25.5.
Comment 7 André Klapper 2012-06-21 10:01:48 UTC
*** Bug 542007 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2012-06-21 10:01:53 UTC
*** Bug 488348 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2017-02-09 13:39:49 UTC
GtkHtml is not under active development anymore. 
Evolution (its main consumer) switched to a WebKit backend a while ago. 
It is currently unlikely that there will be any further GtkHtml development.

Closing this report as WONTFIX as part of Bugzilla Housekeeping (bug 778387) to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.