Changeset 7781


Ignore:
Timestamp:
11/15/10 10:46:28 (9 years ago)
Author:
plg
Message:

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
  • branches/2.1/include/ws_functions.inc.php

    r7612 r7781  
    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.