Li should update the youtube tag to this

  • We are currently upgrading MFK. thanks! -neo

TheRealAndyCook

Gambusia
MFK Member
Aug 26, 2010
708
0
16
Canada
$text = preg_replace("/\[yt\]((http:\/\/youtube.com|)(\/|)(|watch\?v=|))([a-zA-Z0-9\._-]*?)(|&(.*?))\[\/yt\]/i", "<iframe title=\"YouTube video player\" width=\"425\" height=\"349\" src=\"http://www.youtube.com/embed/$5\" frameborder=\"0\" allowfullscreen></iframe>", $text);


Allows

[y***t]asdfasdfas[/yt]

[y***t]asdfasdf&value=asdf[/yt]

[y***t]watch?v=asdfasdf[/yt]

[y***t]/watch?v=asdfasdf[/yt]

[y***t]http://www.youtube.com/watch?v=asdfasdf[/yt]


And, patchs all the current exploits associated with the [yt] tag
 
Dude
W
t
f
i
s
t
h
i
s
?
 
insted of blindly, and haphazardly letting users inject malicious code into the site.

It makes the yt tag more easier to use, by incorporating all the "wrong" ways users here seem to use it, aswell as secures the site so a hacker cant steal your sessions and then login as you :)


its okay tho, Li wont implement it and my database can keep growing.
 
...cool story
 
MonsterFishKeepers.com