Author: chabotc
Date: Tue Jun 17 06:04:00 2008
New Revision: 668644
URL: http://svn.apache.org/viewvc?rev=668644&view=rev
Log:
Same magic quotes mayhem in activities
Modified:
incubator/shindig/trunk/php/src/socialrest/ActivityHandler.php
Modified: incubator/shindig/trunk/php/src/socialrest/ActivityHandler.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/ActivityHandler.php?rev=668644&r1=668643&r2=668644&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/ActivityHandler.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/ActivityHandler.php Tue Jun 17
06:04:00 2008
@@ -68,6 +68,9 @@
$groupId = GroupId::fromJson($params[2]);
// TODO: Should we pass the groupId through to the service?
$jsonActivity = isset($_POST['entry']) ? $_POST['entry'] :
(isset($_GET['entry']) ? $_GET['entry'] : null);
+ if (get_magic_quotes_gpc()) {
+ $jsonActivity = stripslashes($jsonActivity);
+ }
$activity = $this->convertToObject($jsonActivity);
return $this->service->createActivity($userId, $activity, $token);
}