X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=web%2Fupdate.cgi;h=33fc9de543e409a5f526d90815e178c33416f9d0;hb=10ed90c0bd35fb4538ef4e1b28fce41052aa124f;hp=d8e0ad0bb719c253b6eb9f4bef60ca5676877021;hpb=2a5c0adebc61191d9d9056947b60abf56fe789e6;p=mirror%2Fuserdir-ldap.git diff --git a/web/update.cgi b/web/update.cgi index d8e0ad0..33fc9de 100755 --- a/web/update.cgi +++ b/web/update.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: update.cgi,v 1.4 1999/12/13 04:53:28 tausq Exp $ +# $Id: update.cgi,v 1.5 1999/12/13 04:56:48 tausq Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. use lib '.'; @@ -94,7 +94,8 @@ if (!($query->param('doupdate'))) { # Actually update stuff... my ($newpassword, $newstaddress); - if ($query->param('labeledurl') !~ /^https?:\/\//i) { + if (($query->param('labeledurl')) && + ($query->param('labeledurl') !~ /^https?:\/\//i)) { &Util::HTMLError("Your homepage URL is invalid"); }