Bug Need to escape HTML in mention display

Status
Not open for further replies.

chapel

New member
Someone on my forum mentioned me while writing some html, now in the post the html is fine and doesn't do anything but display as text, but on my profile it actually rendered the html. I looked into the code and added an html escape to keep it from happening, so I thought I would share that here.

<script>alert('Fillip H.')</script>

Probably won't work, but keep it in mind.

PHP:
// Existing line in class_profileblock.php
$message = $message_orig = strip_bbcode($results_r['message'], false, false, false);
// What I added to escape html after
$message = htmlspecialchars($message, ENT_QUOTES);

Yeah, so you might want to patch that asap.
 
Last edited by a moderator:
Thanks for the report, I'll have that fixed as part of a bugfix rollup I'll be bringing out today (hopefully) :)
 
Status
Not open for further replies.

Legacy Advanced User Tagging

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,505
Customer rating
0.00 star(s) 0 ratings
Back
Top