mirror of https://github.com/pixelfed/pixelfed.git
Update AP Helpers
This commit is contained in:
parent
52863d81e6
commit
0ecb4133d5
|
@ -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…
Reference in New Issue