Tracking url error

juanlacueva

New Member
Link redirect is returning the wrong URL

If the HTML has http://www.example.com then the mail has this link:

http://mlm-domain.com.ar/mlm/lm.php?tk=SnVhbglMYWN1ZXZhCQlqdWFuaWduYWNpb0BnbWFpbC5jb20JW0ZpcnN0bmFtZV0gU29sdWNpb25lcyBwYXJhIGVtcHJlc2FzIHNvYnJlIGlQYWRzCTk0CVBydWViYSBpbnRlcm5hCTEJY2xpY2sJeWVzCW5v&url=http%3A%2F%2Fwww.example.com

But then, instead of redirecting the user to example.com, it goes to http://mlm-domain.com.ar/mlm/http://www.example.com

MLM responds and tracks the links but the final redirection is broken

How can I fix this?
 

stanbusk

Administrator
Staff member
Have you asked your server about that? MLM uses the standard PHP header() command for forwards.
 

juanlacueva

New Member
stanbusk said:
Have you asked your server about that? MLM uses the standard PHP header() command for forwards.


There seems to be a bug. Nothing changed on my hosting but I did updated MaxBulk and click tracking started to broke URLs since then. I changed lien 1316 in lm.php to

Code:
if ( $fwd == "yes" && $url <> "" ) { header( "Location: ".urldecode($url) ); }

and now ir works. Before my fix, $url was url-encoded so "http://" was a string (slashes turned into %numbers) and therefore header() thought it was a relative address not an absolute one
 
Top