Преглед изворни кода

Remove crlf and replace with lf

FusionPBX пре 4 година
родитељ
комит
486a420635
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      file_save.php

+ 1 - 1
file_save.php

@@ -128,7 +128,7 @@
 						if (!$handle) {
 						if (!$handle) {
 							throw new Exception('Write Failed - Check File Owner & Permissions');
 							throw new Exception('Write Failed - Check File Owner & Permissions');
 						}
 						}
-						fwrite($handle, $_POST["content"]);
+						fwrite($handle, str_replace ("\r\n", "\n", $_POST["content"]));
 						fclose($handle);
 						fclose($handle);
 					}
 					}