madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21728: LJSUP-11862: Use of uninitialized value ...

Committer: sbelyaev
LJSUP-11862: Use of uninitialized value in pattern match (m//) /DelayedEntry.pm line
U   trunk/cgi-bin/LJ/DelayedEntry.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry.pm
===================================================================
--- trunk/cgi-bin/LJ/DelayedEntry.pm	2012-04-17 08:05:22 UTC (rev 21727)
+++ trunk/cgi-bin/LJ/DelayedEntry.pm	2012-04-17 08:25:31 UTC (rev 21728)
@@ -8,6 +8,7 @@
 
 sub create_from_url {
     my ($class, $url, $opts) = @_;
+    return undef unless $url;
 
     if ($url =~ m!(.+)/d(\d+)\.html!) {
         my $username = $1;

Tags: livejournal, madeon, pm, sbelyaev
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