You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/17 15:01:58 UTC
svn commit: r668643 -
/incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php
Author: chabotc
Date: Tue Jun 17 06:01:58 2008
New Revision: 668643
URL: http://svn.apache.org/viewvc?rev=668643&view=rev
Log:
SHINDIG-389 Magic quotes mayhem
Modified:
incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php
Modified: incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php?rev=668643&r1=668642&r2=668643&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/AppDataHandler.php Tue Jun 17 06:01:58 2008
@@ -83,6 +83,9 @@
$appId = $this->getAppId($params[3], $token);
$fields = isset($_GET['fields']) ? explode(',', $_GET['fields']) : null;
$jsonActivity = isset($_POST['entry']) ? $_POST['entry'] : (isset($_GET['entry']) ? $_GET['entry'] : null);
+ if (get_magic_quotes_gpc()) {
+ $jsonActivity = stripslashes($jsonActivity);
+ }
$values = $this->convertToObject($jsonActivity);
return $this->service->updatePersonData($userId, $groupId, $fields, $values, $appId, $token);
}