Menu

#7 urls_clickable() bug

reproducible
open
nobody
post (4)
5
2001-08-12
2001-08-12
Anonymous
No

If you were to try and post a message such as

",asdhjl"

it comes up with illegal string index errors as the
function urls_clickable($string) find "h" in the
string and then trys to access the string index upto
h+6..

to fix this, replace
if(strtolower($string[$n]) == 'h')
with
if((strtolower($string[$n]) == 'h') && ($n < (strlen
($string) - 6)))

Jamie

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.