Committer: janine
LJSV-513Allow hyphens in class names passed to Comment::print_reply_link().
U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2009-01-07 21:11:48 UTC (rev 14758) +++ trunk/cgi-bin/LJ/S2.pm 2009-01-08 15:43:49 UTC (rev 14759) @@ -3177,7 +3177,7 @@ return unless $target =~ /^\w+$/; # if no target specified bail the fuck out my $opt_class = $opts->{'class'}; - undef $opt_class unless $opt_class =~ /^[\w\s]+$/; + undef $opt_class unless $opt_class =~ /^[\w\s-]+$/; my $opt_img = LJ::CleanHTML::canonical_url($opts->{'img_url'}); $replyurl = LJ::CleanHTML::canonical_url($replyurl);