Universal Form Validator PHP Support Product Page

Solved

Mistake when a URL is checked:

Reported 11 years ago
1
has this problem
11 years ago Carmen Scheibe posted:
when a URL is checked:
"Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /vrmd/homepages/u24934/ScriptLibrary/dmxValidator.php on line 1989"
www.talsperre-kriebstein.de/edit/register.php
(I write this the third time. Have already sent an Image to your email.
(I cannot use this extension with this mistake and need a quick solution.)
Carmen

Replies

Replied 11 years ago
11 years ago Teodor Kuduschiev replied:
Hello,
I just tried this website and cannot see the error you are referring to. When exactly does this appear?
Replied 11 years ago
11 years ago Carmen Scheibe replied:
Hallo, you haven't filled the Field "Internet www." .
This Field ("Internet www.") should be checked for a valid URL, (example: "www.dmxzone.com) and the mistake appears.
Replied 11 years ago
11 years ago Teodor Kuduschiev replied:
Please edit the
/ScriptLibrary/dmxValidator.php file
and replace the line 1989 with:

return (preg_match('/^((ftp|(http(s)?)):\/\/)?(\.?([a-z0-9-]+))+\.[a-z]{2,6}(:[0-9]{1,5})?(\/[a-zA-Z0-9.,;\?|\'+&%\$#=~_-]+)*$/i', $_POST[$element]) > 0);

Replied 11 years ago
11 years ago Carmen Scheibe replied:
ok, thank you, after this difficult way this functions now. I am waiting now for the next update (go together with HTML3 Editor.)

Reply to this topic