mlmmj

changeset 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 diff
     1.1 --- a/contrib/web/php-admin/htdocs/save.php	Wed Oct 20 12:43:26 2010 +1100
     1.2 +++ b/contrib/web/php-admin/htdocs/save.php	Thu Oct 21 09:22:07 2010 +1100
     1.3 @@ -62,7 +62,7 @@
     1.4  	if (!$fp = fopen($file, "w"))
     1.5  	    die("Couldn't open ".$file." for writing");
     1.6  
     1.7 -	fwrite($fp, preg_replace('/\\r\\n/',"\n",$HTTP_POST_VARS[$name]));
     1.8 +	fwrite($fp, preg_replace('/\\r/',"",$HTTP_POST_VARS[$name]));
     1.9  	fclose($fp);
    1.10  
    1.11  	if (!chmod($file, 0644))