View Issue Details

IDProjectCategoryView StatusLast Update
0020238phpList 3 applicationStatisticspublic20-07-20 19:01
Reporterneillsanders Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionno change required 
Product Version3.5.5-RC1 
Target Version3.5.5 
Summary0020238: Link click tracking ID regular expression incorrect
DescriptionHi! This is my first ever bug report, please bear with me. I've just sent out my first ever mail shot with the click tracking enabled. A large number of users have encountered a "not found" error when clicking through a link in the email. I have found that this is due to the way that the "tid" query string parameter is validated in lists/lt.php being incorrect.


In the above expression ?4[a-f0-9]{3} requires the number 4 to always be prefix three more alpha-numeric values, however links generated by PHPList when sending the campaign do not always include the 4 as a prefix. I believe it should be changed to the following which I have validated as working for all links that were being rejected:


I hope this small contribution goes a little way to helping PHPList be even more awesome!

TagsNo tags attached.



20-07-20 11:04

updater   ~0063235

Last edited: 20-07-20 11:13

View 2 revisions

The digit 4 is pretty much a constant when a UUID is created. If you are seeing a different value that suggests a problem elsewhere. Please show an example of a parameter that doesn't have a 4 in that position.

If you look at the user, message and linktrack_forward tables in the database, each has a uuid column. You should be able to find any that do not have a 4 in that position.


20-07-20 11:17

reporter   ~0063236

Hello Duncan, here are some examples of the $track variable which failed the regular expression test before I made changes:



20-07-20 11:35

updater   ~0063237

It is the subscriber fields that have the wrong value. How did you add the subscribers? Imported a file, added manually through phplist admin page?


20-07-20 11:58

reporter   ~0063238

Caught me red handed! I have recently migrated to PHPList and in doing so created a custom import process that inserted directly into the database using the mysql UUID() function to generate PHPList user UID values. I may have wasted your time, and if so I apologise, unless you think it might be a good idea to change the validation is lt.php slightly to cater for this scenario in future? Does PHPList have an API? Thanks Duncan!


20-07-20 19:01

administrator   ~0063239

There are various APIs:

and the hosted service has a SOAP API, which can be used with this client: