mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-23 02:56:02 +02:00
EPP validation improvements
This commit is contained in:
parent
723d3c8906
commit
913cf7f79b
2 changed files with 31 additions and 7 deletions
|
@ -173,7 +173,7 @@ function processContactUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
|
|||
if ($postalInfoIntOrg) {
|
||||
if (
|
||||
preg_match('/(^\-)|(^\,)|(^\.)|(\-\-)|(\,\,)|(\.\.)|(\-$)/', $postalInfoIntOrg) ||
|
||||
!preg_match('/^[a-zA-Z0-9\-\&\,\.\/\s]{5,}$/', $postalInfoIntOrg) ||
|
||||
!preg_match('/^[a-zA-Z0-9\-\'\&\,\.\/\s]{5,}$/', $postalInfoIntOrg) ||
|
||||
strlen($postalInfoIntOrg) > 255
|
||||
) {
|
||||
sendEppError($conn, $db, 2005, 'Invalid contact:org', $clTRID, $trans);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue