Mercurial > hg > mlmmj
changeset 766:75fb7729c6e8
Remove \r more aggressively in php-admin (Franky Van Liedekerke)
author | Ben Schmidt |
---|---|
date | Thu, 21 Oct 2010 09:22:07 +1100 |
parents | e08598db1be1 |
children | 4be42e1ca045 |
files | contrib/web/php-admin/htdocs/save.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/web/php-admin/htdocs/save.php Wed Oct 20 12:43:26 2010 +1100 +++ b/contrib/web/php-admin/htdocs/save.php Thu Oct 21 09:22:07 2010 +1100 @@ -62,7 +62,7 @@ if (!$fp = fopen($file, "w")) die("Couldn't open ".$file." for writing"); - fwrite($fp, preg_replace('/\\r\\n/',"\n",$HTTP_POST_VARS[$name])); + fwrite($fp, preg_replace('/\\r/',"",$HTTP_POST_VARS[$name])); fclose($fp); if (!chmod($file, 0644))