From 1859142cc8b0df734320dcb9798896377a5bf35f Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 15 Nov 2010 09:46:28 +0000 Subject: bug 2035 fixed: avoid sending multiple line error code in HTTP header. This was breaking the JSON parsing on pwg.images.addComment response from Piwigo because of an raw HTML warning. git-svn-id: http://piwigo.org/svn/branches/2.1@7781 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index b75fbfc08..1e414b9ce 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -580,7 +580,7 @@ SELECT DISTINCT image_id { case 'reject': array_push($infos, l10n('Your comment has NOT been registered because it did not pass the validation rules') ); - return new PwgError(403, implode("\n", $infos) ); + return new PwgError(403, implode("; ", $infos) ); case 'validate': case 'moderate': $ret = array( -- cgit v1.2.3