The Arcive of vBulletin Modifications Site. |
|
Disallow HTML code in Thread Titles Details »»
|
||||||||||||||||||||||||||
Disallow HTML code in Thread Titles v1.01
Quote:
03/09/2006 Recently there has been a spate of members posting html redirection code in thread titles, which when parsed on the forum homepage runs and redirects to whatever site they insert into the title. This code simply disallows the characters < and > from being used in the thread titles, this is also is checked when editing the post. It's fairly simple but puts to and end members signing up and posting redirect links. I don't know whether you'd class this as a hack or bug fix, but I hope this helps other members who are frustrated with this issue. 2 file edits 1 new phrase Should be fairly straightforward to install. **ALWAYS BACK UP FILES BEFORE YOU EDIT THEM!!** v1.00 Original release v1.01 Slight code update Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Reserved for updates
|
|
#3
|
|||
|
|||
|
Good idea, steadicamop.
edit: there seems to be a problem in: /includes/functions_newpost.php find: error: Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /includes/functions_newpost.php on line 379 |
|
#4
|
||||
|
||||
|
Quote:
Code:
elseif (preg_match('/<|>/',$vbulletin->GPC['title']))
eval(standard_error(fetch_error('nohtml')));
|
|
#5
|
||||
|
||||
|
Both those files have hooks, can these changes not be done via plugins ?
|
|
#6
|
||||
|
||||
|
I'll look into remaking it as a plugin - I've never dealt with creating plugins before so it's something I will have to my research on.
|
|
#7
|
||||
|
||||
|
Thanks for this!
|
|
#8
|
||||
|
||||
|
Okay, just asking.
I think far more people are likely to make use of it if no file edits are involved.
|
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
|||
|
|||
|
so even if you dont allow html they can still post html in thread titles? if thats the case it seems strange that vbulletin wouldnt patch that. as you could just do this all day long with a google search finding vbulletin sites. would suck to have to use a plugin, hack, php file edit what ever to stop it and secure your site.
|
![]() |
|
|