Procházet zdrojové kódy

add trim to writing ini file to fix leading/trailing spaces

Rob Walsh před 9 roky
rodič
revize
0e308763ef
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      index.php

+ 2 - 2
index.php

@@ -67,7 +67,7 @@ function write_ini_file($content, $path) {
     
     
     }
     }
     
     
-    $success = fwrite($handle, $content);
+    $success = fwrite($handle, trim($content));
     
     
     fclose($handle); 
     fclose($handle); 
     
     
@@ -2030,4 +2030,4 @@ endif; ?>
 
 
     </body>
     </body>
 
 
-</html>
+</html>