fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8350] property: json_decode has issues with magic_qu


From: Sigurd Nes
Subject: [Fmsystem-commits] [8350] property: json_decode has issues with magic_quotes_gpc
Date: Fri, 16 Dec 2011 14:52:01 +0000

Revision: 8350
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8350
Author:   sigurdne
Date:     2011-12-16 14:52:01 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
property: json_decode has issues with magic_quotes_gpc

Modified Paths:
--------------
    trunk/property/inc/class.uilocation.inc.php

Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2011-12-16 14:24:20 UTC (rev 
8349)
+++ trunk/property/inc/class.uilocation.inc.php 2011-12-16 14:52:01 UTC (rev 
8350)
@@ -1120,7 +1120,7 @@
 
                        if($values_assign && $this->acl_edit)
                        {
-                               $values_assign = 
phpgw::clean_value(json_decode($values_assign,true));
+                               $values_assign = 
phpgw::clean_value(json_decode(stripslashes($values_assign),true)); 
//json_decode has issues with magic_quotes_gpc
                                $user_id = abs($user_id);
                                $account = 
$GLOBALS['phpgw']->accounts->get($user_id);
                                $contact_id = $account->person_id;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]