The Arcive of vBulletin Modifications Site. |
|
Remove ability for mods to use HTML in announcements Details »»
|
|||||||||||||||||||||||||||
|
Remove ability for mods to use HTML in announcements
Developer Last Online: Nov 2020
Currently if someone is able to hack into one your of moderator accounts they could use it to launch a XSS attack since they could select the option to use HTML in announcements.
To fix this open modcp/announcement.php Change Code:
print_yes_no_row($vbphrase['allow_html'], 'announcementoptions[allowhtml]', ($announcement['announcementoptions'] & $vbulletin->bf_misc_announcementoptions['allowhtml'] ? 1 : 0)); Code:
//print_yes_no_row($vbphrase['allow_html'], 'announcementoptions[allowhtml]', ($announcement['announcementoptions'] & $vbulletin->bf_misc_announcementoptions['allowhtml'] ? 1 : 0)); Show Your Support
|
|||||||||||||||||||||||||||
| Благодарность от: | ||
| adwade | ||
| Comments |
|
#2
|
||||
|
||||
|
Thanks for posting this, but it is really not a add-on, it's a file edit.
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
A better solution is not to give moderators permissions to post any announcements or notices.
|
![]() |
|
|