From e4c6f5bcbe9edbf8091584fca9fbfe82e1175dac Mon Sep 17 00:00:00 2001 From: Craig Lennox Date: Sat, 27 Nov 2010 17:29:49 -0500 Subject: check that user is defined before regexp compare --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3