Commit 457f5847 authored by drumm's avatar drumm

#67244 by Steve Dondley and Morbus Iff, write out a more compatible files/.htaccess.

parent be8d155b
......@@ -113,7 +113,7 @@ function file_check_directory(&$directory, $mode = 0, $form_item = NULL) {
}
if ((file_directory_path() == $directory || file_directory_temp() == $directory) && !is_file("$directory/.htaccess")) {
$htaccess_lines = "SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006\nOptions None\n<IfModule mod_rewrite.c>\n RewriteEngine off\n</IfModule>";
$htaccess_lines = "SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006\nOptions None\nOptions +FollowSymLinks\n<IfModule mod_rewrite.c>\n RewriteEngine off\n</IfModule>";
if (($fp = fopen("$directory/.htaccess", 'w')) && fputs($fp, $htaccess_lines)) {
fclose($fp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment