Change Most used protocols.

This commit is contained in:
Marco A. Nina Mena
2017-08-08 14:51:42 -04:00
parent b6ce2f94a9
commit dc9aeab075

View File

@@ -38,7 +38,8 @@ $aFields['URL'] = '';
if (!empty($_GET['u'])) {
//clean url with protocols
$flagUrl = true;
$protocols = ['https://', 'http://', 'ftp://', 'www.'];
//Most used protocols
$protocols = ['https://', 'http://', 'ftp://', 'sftp://','smb://', 'file:', 'mailto:'];
foreach ($protocols as $protocol) {
if (strpos($_GET['u'], $protocol) !== false) {
$_GET['u'] = '';