Skip to content

Commit

Permalink
Fix dumb exploit that allowed arbitrary HTML in profile blocks (whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEnchilada committed Feb 19, 2015
1 parent 9ff7c22 commit 62f42bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/profileblock.php
Expand Up @@ -106,7 +106,7 @@ function showDescription()
$this->out->elementStart(
'p',
'profile_block_description');
$this->out->raw(preg_replace('/\r?\n/', '<br />', $description));
$this->out->raw(preg_replace('/\r?\n/', '<br />', htmlspecialchars($description)));
$this->out->elementEnd('p');
}
}
Expand Down

0 comments on commit 62f42bc

Please sign in to comment.