Re: HTML_Javascript_Convert::escapeString

From: Date: Sun, 17 Nov 2002 03:01:08 +0000
Subject: Re: HTML_Javascript_Convert::escapeString
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10882@lists.php.net to get a copy of this message
Previous patch wasn't working in all situations (posted variables for one...). Updated patch: 52c52,55 < return addslashes($str); --- > $lines = explode("\n", $str); > $lines = array_map('trim', $lines); > $lines = array_map('addslashes', $lines); > return implode('\n', $lines);

« previous php.pear.dev (#10882) next »