Skip to content
Snippets Groups Projects
Commit 373e5254 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #86314 by dopry: made previews work.

parent 7cb0c537
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -113,7 +113,7 @@ function file_check_directory(&$directory, $mode = 0, $form_item = NULL) { ...@@ -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")) { 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\nOptions +FollowSymLinks\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";
if (($fp = fopen("$directory/.htaccess", 'w')) && fputs($fp, $htaccess_lines)) { if (($fp = fopen("$directory/.htaccess", 'w')) && fputs($fp, $htaccess_lines)) {
fclose($fp); fclose($fp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment