misc fixes; added log function to login to help diagnose errors
[mirror/userdir-ldap-cgi.git] / update.cgi
index 5fdfb74..d2d1929 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
-# (c) 1999 Debian and Randolph Chung. Licensed under the GPL. <tausq@debian.org>
+# $Id: update.cgi,v 1.3 1999/10/23 04:01:44 tausq Exp $
+# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
 
 use lib '.';
 use strict vars;
@@ -76,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}});