X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=update.cgi;h=d2d1929008ee90d5fb14c924a92cf5b60a4ea257;hb=c7fda50cb6034976bba8b8eec9c52a3f41d20e08;hp=c0d722bfebf94452fb78e6a02c7f90723ecabc3c;hpb=9516abcf67569f12f798724639a6535709072530;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/update.cgi b/update.cgi index c0d722b..d2d1929 100755 --- a/update.cgi +++ b/update.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: update.cgi,v 1.2 1999/09/26 01:20:39 tausq Exp $ +# $Id: update.cgi,v 1.3 1999/10/23 04:01:44 tausq Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. use lib '.'; @@ -77,6 +77,9 @@ if (!($query->param('doupdate'))) { $data{staddress} = $entry->{postaladdress}->[0]; $data{staddress} =~ s/\$/\n/; $data{countryname} = &Util::LookupCountry($data{c}); + if ($data{labeledurl} !~ /^https?:\/\//i) { + &Util::HTMLError("Malformed URL entered"); + } $data{email} = join(", ", @{$entry->{emailforward}});