Forum Replies Created

Viewing 1 replies (of 1 total)
  • tempuserkdkz

    (@tempuserkdkz)

    SVN revision: 2649873 (edited from: 2669537, but this was a tabbing issue fix) added some code, where there’s a typo, which could be the cause of the issue:

    74	            // security fix
    75	            $myfile = $backup_dirname."/.htaccess";
    76	            if(!file_exists($myfile)){
    77	                $myfileHandle = @fopen($myfile, 'w+');
    78	                if(!is_bool($myfileHandle)){
    79	                    $txt = '<FilesMatch "\.(zip|gz)$">';
    80	                    $txt .= "\nOrder allow,deny\n";
    81	                    $txt .= "Deny from all\n";
    82	                    $txt .= "</Files>";
    83	                    @fwrite($myfileHandle, $txt);
    84	                    @fclose($myfileHandle);
    85	                }
    86	            }

    Line 82 has the fault. It should be closing FilesMatch instead.

    To fix it for the future, this line should be updated.
    Haven’t checked more about the code, so can’t really say anything about it in general.
    Just stumbled upon this one and thought it was worth reporting, if no one else had.

    If trying to fix it yourself, you should probably check the .htaccess file in the folder as well.

Viewing 1 replies (of 1 total)