Skip to content

Commit

Permalink
[rt.cpan.org 41615] Don't rely on maxlength to prevent nickname overf…
Browse files Browse the repository at this point in the history
…low.
  • Loading branch information
zoffixznet authored and rcaputo committed Jul 13, 2013
1 parent bd83d00 commit 7508ee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Bot/Pastebot/Server/Http.pm
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ sub httpd_session_got_query {
$nick =~ s/\s+/ /g;
$nick =~ s/^\s+//;
$nick =~ s/\s+$//;
$nick = substr($nick, 0, 30);
$nick = html_encode($nick);

if (length $nick) {
Expand Down

0 comments on commit 7508ee9

Please sign in to comment.