Author: xavier
Date: 2010-01-12 13:35:11 +0100 (Tue, 12 Jan 2010)
New Revision: 26527
Modified:
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
Log:
[sfDoctrineRestGeneratorPlugin]: fixed erronous 200 HTTP code when the payload
is not a valid XML file
Modified:
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
===================================================================
---
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
2010-01-12 12:23:20 UTC (rev 26526)
+++
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
2010-01-12 12:35:11 UTC (rev 26527)
@@ -2,7 +2,7 @@
{
if ($force || !isset($this->_payload_array))
{
- $dom = simplexml_load_string($xml);
+ $dom = @simplexml_load_string($xml);
if (!$dom)
{
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.