The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Allow HTML but forbid JavaScript in signatures?
Is there a way to allow HTML in signatures, but not JavaScript? The reasons should be obvious enough. I did a search, and did not find anything. Should be a change easy to do, right?
d. |
#2
|
||||
|
||||
Javascript is automatically removed from all texts in vBulletin:
Code:
javascript:xxx |
#3
|
|||
|
|||
Does not seem to be. I've got an user with JavaScript on his signature that works fine. I do have HTML enabled for signatures, and I'd like to block JavaScript.. or the whole <script> tag.
d. |
#4
|
|||
|
|||
Go to admin cp. vB Options. Add the <script> into the to censor word list.
|
#5
|
|||
|
|||
That censor thing did the trick. But I went to printthread.php and added:
Code:
$post[signature] = eregi_replace("< *SCRIPT", "<!--", $post[signature]); $post[signature] = eregi_replace("< */SCRIPT *>", "-->", $post[signature]); Code:
if ($post[showsignature] and $allowsignatures and trim... d. |
#6
|
|||
|
|||
No...that did *not* work. I guess I'll use the censor thing then. Oh well....
d. |
#7
|
|||
|
|||
The problem is that users can use event handlers to launch scripts (i.e. onClick, onLoad, etc...) So you'd need to block all event handlers to prevent scripts from lauching. The problem with that is that IE supports tons of their own propritary event handlers, so it would be a lot of work.
Dan |
#8
|
|||
|
|||
I see your point...
d. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|