Security: Rename htaccess file by replacing case-insensitively

See dc7bfce429 (r127629622)
pull/4909/head
Angel Fernando Quiroz Campos 2 years ago committed by GitHub
parent 9472790435
commit f680d7dec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main/inc/lib/fileUpload.lib.php

@ -38,9 +38,7 @@ function php2phps($file_name)
*/
function htaccess2txt($filename)
{
$filename = strtolower($filename);
return str_replace('.htaccess', 'htaccess.txt', $filename);
return str_ireplace('.htaccess', 'htaccess.txt', $filename);
}
/**

Loading…
Cancel
Save