Ver Fonte

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

Tyler Akins há 24 anos atrás
pai
commit
9437396325
2 ficheiros alterados com 3 adições e 2 exclusões
  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 "\t\$motd = \"$motd\";\n";
 
-   print FILE "?>\n";
    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
  // the following:
  //   $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