Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merge r7781 from branch 2.1 to trunk
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/trunk@7782 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Nov 15, 2010
1 parent 81dfe1f commit 4ae463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ws_functions.inc.php
Expand Up @@ -580,7 +580,7 @@ function ws_images_addComment($params, &$service)
{
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(
Expand Down

0 comments on commit 4ae463a

Please sign in to comment.