Skip to content

Commit 844684f

Browse files
author
mcramer
committed
Some newlines removed from htaccess
1 parent 7d91e31 commit 844684f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,8 +1745,8 @@ function web_folder_user($event_name,$data) {
17451745
//* Create the .htaccess file
17461746
//if(!is_file($folder_path.'.htaccess')) {
17471747
$begin_marker = '### ISPConfig folder protection begin ###';
1748-
$end_marker = '### ISPConfig folder protection end ###';
1749-
$ht_file = $begin_marker."\nAuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$folder_path.".htpasswd\nrequire valid-user\n".$end_marker."\n\n";
1748+
$end_marker = "### ISPConfig folder protection end ###\n\n";
1749+
$ht_file = $begin_marker."\nAuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$folder_path.".htpasswd\nrequire valid-user\n".$end_marker;
17501750

17511751
if(file_exists($folder_path.'.htaccess')) {
17521752
$old_content = $app->system->file_get_contents($folder_path.'.htaccess');
@@ -1806,7 +1806,7 @@ function web_folder_delete($event_name,$data) {
18061806
//* Remove .htaccess file
18071807
if(is_file($folder_path.'.htaccess')) {
18081808
$begin_marker = '### ISPConfig folder protection begin ###';
1809-
$end_marker = '### ISPConfig folder protection end ###';
1809+
$end_marker = "### ISPConfig folder protection end ###\n\n";
18101810

18111811
$ht_file = $app->system->file_get_contents($folder_path.'.htaccess');
18121812

@@ -1873,7 +1873,7 @@ function web_folder_update($event_name,$data) {
18731873
if(!is_dir($new_folder_path)) $app->system->mkdirpath($new_folder_path);
18741874

18751875
$begin_marker = '### ISPConfig folder protection begin ###';
1876-
$end_marker = '### ISPConfig folder protection end ###';
1876+
$end_marker = "### ISPConfig folder protection end ###\n\n";
18771877

18781878
if($data['old']['path'] != $data['new']['path']) {
18791879

@@ -1905,7 +1905,7 @@ function web_folder_update($event_name,$data) {
19051905

19061906
//* Create the .htaccess file
19071907
if($data['new']['active'] == 'y') {
1908-
$ht_file = $begin_marker."\nAuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$new_folder_path.".htpasswd\nrequire valid-user\n".$end_marker."\n\n";
1908+
$ht_file = $begin_marker."\nAuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$new_folder_path.".htpasswd\nrequire valid-user\n".$end_marker;
19091909

19101910
if(file_exists($new_folder_path.'.htaccess')) {
19111911
$old_content = $app->system->file_get_contents($new_folder_path.'.htaccess');

0 commit comments

Comments
 (0)