View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0019555||phpList 3 application||General||public||12-11-18 21:06||26-07-19 13:35|
|Target Version||3.3.7||Fixed in Version||3.3.7|
|Summary||0019555: URL is truncated when click tracking is enabled|
|Description||A problem was reported with a link URL being truncated when click tracking is enabled|
The URL is to a google maps page and is quite lengthy but there appear to be two aspects of the URL that cause phplist to corrupt the value that is stored in the linktrack_forward table - it contains a single-quote and contains a comma.
There are a few places where the message html is parsed with regular expressions to identify links and their href attribute, e.g.
preg_match_all('/<a (.*)href=["\'](.*)["\']([^>]*)>(.*)<\/a>/Umis', $htmlmessage, $links);
The regex is too lax regarding the delimiters. Either both should be single-quote or both should be double-quote. Currently it will treat a single quote in the href attribute value as the terminating delimiter.
The second problem is when the plain text message is parsed to find URLs. In this case the regex doesn't allow a comma within the URL, so the URL is truncated.
|Tags||No tags attached.|