ZeroHour
Customer
Hi
We purchased this a while ago and for various reasons have never been able to actually enable it.
I just updated to V2 and noticed your CP pages mentioning that you have 2 modes now, one with a ; required to tag and one without.
I have taken a quick gander at your code and am more curios why you have this issue with email addresses as I can think of what see as a simple solution (although I have not read through all the code)
The function usertag_match_all pulls strpos of the @, now the next lines could easily check to things to prevent email address and other issues.
Simply check is strpos is 0 first which means the tag is at the start of the post then if it is not 0 check the char to strpos -1 is " "
That way you have removed any chance of the email addresses being picked up as they would have anything but a " " and your also handing if the tag is start as you may get errors checking strpos 0 - 1.
It should also be pretty fast as your not running multiple strpos searches.
It seems like a simple solution to me but like I say I have not finished my audit yet for which I do for all addons before going live.
Thoughts?
Cheers
We purchased this a while ago and for various reasons have never been able to actually enable it.
I just updated to V2 and noticed your CP pages mentioning that you have 2 modes now, one with a ; required to tag and one without.
I have taken a quick gander at your code and am more curios why you have this issue with email addresses as I can think of what see as a simple solution (although I have not read through all the code)
The function usertag_match_all pulls strpos of the @, now the next lines could easily check to things to prevent email address and other issues.
Simply check is strpos is 0 first which means the tag is at the start of the post then if it is not 0 check the char to strpos -1 is " "
That way you have removed any chance of the email addresses being picked up as they would have anything but a " " and your also handing if the tag is start as you may get errors checking strpos 0 - 1.
It should also be pretty fast as your not running multiple strpos searches.
It seems like a simple solution to me but like I say I have not finished my audit yet for which I do for all addons before going live.
Thoughts?
Cheers
Upvote
0