https a bunch of things

This commit is contained in:
Shish
2020-03-25 11:47:00 +00:00
parent c3b67f346b
commit 03806d0420
25 changed files with 63 additions and 63 deletions

View File

@ -27,7 +27,7 @@ function array_iunique(array $array): array
/**
* Figure out if an IP is in a specified range
*
* from http://uk.php.net/network
* from https://uk.php.net/network
*/
function ip_in_range(string $IP, string $CIDR): bool
{
@ -86,7 +86,7 @@ function deltree(string $f): void
/**
* Copy an entire file hierarchy
*
* from a comment on http://uk.php.net/copy
* from a comment on https://uk.php.net/copy
*/
function full_copy(string $source, string $target): void
{
@ -380,7 +380,7 @@ function zglob(string $pattern): array
/**
* Figure out the path to the shimmie install directory.
*
* eg if shimmie is visible at http://foo.com/gallery, this
* eg if shimmie is visible at https://foo.com/gallery, this
* function should return /gallery
*
* PHP really, really sucks.
@ -478,7 +478,7 @@ function bool_escape($input): bool
Sometimes, I don't like PHP -- this, is one of those times...
"a boolean FALSE is not considered a valid boolean value by this function."
Yay for Got'chas!
http://php.net/manual/en/filter.filters.validate.php
https://php.net/manual/en/filter.filters.validate.php
*/
if (is_bool($input)) {
return $input;