mirror of https://github.com/MISP/MISP
reverted commit of url validation that didn't validate parts of urls
parent
e13c2e883c
commit
00e463bdff
|
@ -604,7 +604,8 @@ class Attribute extends AppModel {
|
|||
}
|
||||
break;
|
||||
case 'url':
|
||||
if (preg_match('#^(http|ftp)(s)?\:\/\/((([a-z|0-9|\-]{1,25})(\.)?){2,7})($|/.*$)#i', $value) && !preg_match("#\n#", $value)) {
|
||||
// no newline
|
||||
if (!preg_match("#\n#", $value)) {
|
||||
$returnValue = true;
|
||||
}
|
||||
break;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in New Issue