Ampersand in links NOT being replaced !

Questions and answers on bugs and upcoming versions of OpenEMM. See also OpenEMM bugtracker at SourceForge: http://sourceforge.net/tracker/?atid=84 ... unc=browse

Moderator: moderator

Ampersand in links NOT being replaced !

Postby wimg » Mon Nov 16, 2009 4:35 pm

I discovered an annoying bug in OpenEMM.

When using an HTML newsletter, we use the following link :
Code: Select all
<a href="http://www.b-rail.be/php/bexcursions/index.php?lang=N&amp;task=view&amp;sectionid=4&amp;bexcode=501">Dagtrip</a>


This link is XHTML valid, using &amp; instead of & - when loaded in a browser, the browser will replace the &amp; by & automatically, so when you click the link it will go to http://www.b-rail.be/php/bexcursions/in ... excode=501

However, when inserting it in OpenEMM, OpenEMM will attempt to create a trackable link. This means that it will create a special URL which replaces the original URL. So far, no problem. Except that, when this URL is clicked, OpenEMM will redirect you to the original URL (http://www.b-rail.be/php/bexcursions/in ... excode=501) through a "Location" header, causing the URL to be loaded in the browser to include the &amp; which is not valid.

OpenEMM should replace &amp; by & in all trackable links.
[/code]
wimg
 
Posts: 2
Joined: Tue Jun 09, 2009 9:27 am

Return to Bugs, bug fixes & releases

Who is online

Users browsing this forum: No registered users and 1 guest