Skip to content

Commit f680d7d

Browse files
authored
Security: Rename htaccess file by replacing case-insensitively
See dc7bfce#r127629622
1 parent 9472790 commit f680d7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main/inc/lib/fileUpload.lib.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ function php2phps($file_name)
3838
*/
3939
function htaccess2txt($filename)
4040
{
41-
$filename = strtolower($filename);
42-
43-
return str_replace('.htaccess', 'htaccess.txt', $filename);
41+
return str_ireplace('.htaccess', 'htaccess.txt', $filename);
4442
}
4543

4644
/**

0 commit comments

Comments
 (0)