Skip to content
Snippets Groups Projects
Commit 5a61ceb6 authored by Laurent's avatar Laurent
Browse files

dev #17990 fix url validator

parent fbde4b8c
Branches
Tags
2 merge requests!565Dev#17990 miop integration suite,!561Dev#17990 miop integration suite
......@@ -28,7 +28,7 @@ class ZendAfi_Validate_Url extends Zend_Validate_Abstract {
return true;
if (false == strpos($valueString,'://'))
$valueString='http:/'.$valueString;
$this->_setValue($valueString);
$this->_setValue($value);
if (!Zend_Uri::check($valueString)) {
$this->_error(self::INVALID_URL);
......
......@@ -36,7 +36,9 @@ class UrlTest extends PHPUnit_Framework_TestCase {
public function invalidUrls() {
return [ ['images/manchots.png'],
['1234'] ];
['1234'],
['blob']
];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment