mirror of
https://github.com/itflow-org/itflow
synced 2026-07-24 09:20:40 +00:00
Update the rest of the PHP functions to use camelCase
This commit is contained in:
@@ -57,7 +57,7 @@ function toAlphanumeric($string)
|
||||
return preg_replace('/[^A-Za-z0-9_-]/', '', $string);
|
||||
}
|
||||
|
||||
function sanitize_url($url) {
|
||||
function escapeUrl($url) {
|
||||
$allowed = ['http', 'https', 'file', 'ftp', 'ftps', 'sftp', 'dav', 'webdav', 'caldav', 'carddav', 'ssh', 'telnet', 'smb', 'rdp', 'vnc', 'rustdesk', 'anydesk', 'connectwise', 'splashtop', 'sip', 'sips', 'ldap', 'ldaps'];
|
||||
$parts = parse_url($url ?? '');
|
||||
if (isset($parts['scheme']) && !in_array(strtolower($parts['scheme']), $allowed)) {
|
||||
|
||||
Reference in New Issue
Block a user