Check links for using an accepted scheme during validation (http, https,
ftp)
This commit is contained in:
parent
7c02bbb8ad
commit
65aaea4097
|
@ -202,6 +202,11 @@ final class MD_STD_IN {
|
|||
throw new MDInvalidUrl("Invalid input URL");
|
||||
}
|
||||
|
||||
// Check for valid schemes
|
||||
if (MD_STD::startsWithAny($input, ['https://', 'http://', 'ftp://']) === false) {
|
||||
throw new MDInvalidUrl("Invalid input URL");
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user