Janine (janinedog) wrote in changelog,
Janine
janinedog
changelog

[livejournal] r14759: LJSV-513

Committer: janine
LJSV-513

Allow 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);

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments