From: Craig Lennox Date: Sat, 27 Nov 2010 22:29:49 +0000 (-0500) Subject: check that user is defined before regexp compare X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4c6f5bcbe9edbf8091584fca9fbfe82e1175dac;p=ikiwiki.git check that user is defined before regexp compare --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 08a3d7875..b3d47ed6a 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1201,7 +1201,7 @@ sub userpage ($) { sub openiduser ($) { my $user=shift; - if ($user =~ m!^https?://! && + if (defined $user && $user =~ m!^https?://! && eval q{use Net::OpenID::VerifiedIdentity; 1} && !$@) { my $display;