vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17446: LJSUP-6897: fixed "Can't call method "is...

Committer: vad
LJSUP-6897: fixed "Can't call method "is_validated" on an undefined value"
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2010-09-24 09:43:52 UTC (rev 17445)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2010-09-26 10:03:35 UTC (rev 17446)
@@ -2022,6 +2022,10 @@
     if ($LJ::XMLRPC_VALIDATION_METHOD{$method}) {
         # Deny access for accounts that have not validated their email
         my $u = LJ::load_user($req->{'username'});
+        unless ($u){
+            die SOAP::Fault
+                ->faultstring("Unknown username.");
+        }
         unless ($u->is_validated) {
             die SOAP::Fault
                 ->faultstring("Account not validated.");

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