Ampersand in links NOT being replaced !

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

wimg
Posts: 2
Joined: Tue Jun 09, 2009 9:27 am

Ampersand in links NOT being replaced !

Post by wimg »

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&task=view&sectionid=4&bexcode=501">Dagtrip</a>
This link is XHTML valid, using & instead of & - when loaded in a browser, the browser will replace the & 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 & which is not valid.

OpenEMM should replace & by & in all trackable links.
[/code]