wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17873: LJSUP-7507. minor fix

Committer: gprochaev
LJSUP-7507. minor fix

U   trunk/cgi-bin/LJ/Browse/Parser.pm
Modified: trunk/cgi-bin/LJ/Browse/Parser.pm
===================================================================
--- trunk/cgi-bin/LJ/Browse/Parser.pm	2010-12-07 09:14:07 UTC (rev 17872)
+++ trunk/cgi-bin/LJ/Browse/Parser.pm	2010-12-07 09:19:04 UTC (rev 17873)
@@ -149,7 +149,7 @@
     $$text =~ s#(\s*<br\s*/?>\s*){2,}#<br/>#gi;
 
     ## Remove <a><img><br>-type html (imgs had been deleted early)
-    $$text =~ s#(<a.*?></a><br\s*/?>\s*){2,}#<br/>#gi;
+    $$text =~ s#(<a[^>]*?></a><br\s*/?>\s*){2,}#<br/>#gi;
 
     ## Remove all content of 'script' tag
     $$text =~ s#<script.*?/script># #gis;

Tags: livejournal, pm, wisest-owl
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 

  • 0 comments