Ignore:
Timestamp:
Nov 15, 2010, 10:48:47 AM (14 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r7613 r7782  
    581581    case 'reject':
    582582      array_push($infos, l10n('Your comment has NOT been registered because it did not pass the validation rules') );
    583       return new PwgError(403, implode("\n", $infos) );
     583      return new PwgError(403, implode("; ", $infos) );
    584584    case 'validate':
    585585    case 'moderate':
Note: See TracChangeset for help on using the changeset viewer.