Skip to content

Commit 62f42bc

Browse files
author
RedEnchilada
committed
Fix dumb exploit that allowed arbitrary HTML in profile blocks (whoops)
1 parent 9ff7c22 commit 62f42bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/profileblock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function showDescription()
106106
$this->out->elementStart(
107107
'p',
108108
'profile_block_description');
109-
$this->out->raw(preg_replace('/\r?\n/', '<br />', $description));
109+
$this->out->raw(preg_replace('/\r?\n/', '<br />', htmlspecialchars($description)));
110110
$this->out->elementEnd('p');
111111
}
112112
}

0 commit comments

Comments
 (0)