Update AP Helpers

pull/1101/head
Daniel Supernault 6 years ago
parent 52863d81e6
commit 0ecb4133d5
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -135,6 +135,10 @@ class Helpers {
'127.0.0.1', 'localhost', '::1'
];
if(mb_substr($url, 0, 8) !== 'https://') {
return false;
}
$valid = filter_var($url, FILTER_VALIDATE_URL);
if(in_array(parse_url($valid, PHP_URL_HOST), $localhosts)) {

Loading…
Cancel
Save