[pLog-svn] r2256 - plog/branches/plog-1.0.2/class/data/validator
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Mon Jun 20 21:48:15 GMT 2005
Author: jondaley
Date: 2005-06-20 21:48:15 +0000 (Mon, 20 Jun 2005)
New Revision: 2256
Modified:
plog/branches/plog-1.0.2/class/data/validator/httpurlvalidator.class.php
Log:
URLs don't have to have a host parameter, they could be local to the machine
Modified: plog/branches/plog-1.0.2/class/data/validator/httpurlvalidator.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/data/validator/httpurlvalidator.class.php 2005-06-20 21:03:52 UTC (rev 2255)
+++ plog/branches/plog-1.0.2/class/data/validator/httpurlvalidator.class.php 2005-06-20 21:48:15 UTC (rev 2256)
@@ -32,10 +32,8 @@
$this->Validator();
$this->addRule( new NonEmptyRule());
- $this->addRule( new RegExpRule($prefix . $ftp_login .
- "(" . $ip_address . "|localhost|(" .
- $domain_part . $tld . "))" .
- $port . $path . "$",
+ $this->addRule( new RegExpRule("(" . $prefix . $ftp_login . "(" . $ip_address . "|localhost|(" .
+ $domain_part . $tld . "))" . $port . ")?" . $path . "$",
false ));
}
}
More information about the pLog-svn
mailing list