瀏覽代碼

* Avoid parsing errors with config.php by removing the ?> at the end

Tyler Akins 24 年之前
父節點
當前提交
9437396325
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 0 1
      config/conf.pl
  2. 3 1
      config/config_default.php

+ 0 - 1
config/conf.pl

@@ -1679,7 +1679,6 @@ sub save_data {
    print FILE "\tglobal \$motd;\n";
    print FILE "\tglobal \$motd;\n";
    print FILE "\t\$motd = \"$motd\";\n";
    print FILE "\t\$motd = \"$motd\";\n";
 
 
-   print FILE "?>\n";
    close FILE;
    close FILE;
 }
 }
 
 

+ 3 - 1
config/config_default.php

@@ -320,5 +320,7 @@ global $ldap_server;
  // For instance, for the "sqclock" plugin, you'd put a line like
  // For instance, for the "sqclock" plugin, you'd put a line like
  // the following:
  // the following:
  //   $plugins[0] = "sqclock";
  //   $plugins[0] = "sqclock";
+ //   $plugins[1] = "attachment_common";
 
 
-?>
+// Do not add the closing PHP tag here just because we want to avoid
+// the potential for parsing errors if there is a newline added