@@ -145,7 +145,7 @@ private function _new(Context $ctx): void
145145 throw new Exception ("class[ {$ class }] not allowed " );
146146 }
147147 $ class = '\\' . $ class ;
148- $ args = unserialize ( $ ctx ->getParam ('args ' ) );
148+ $ args = $ ctx ->getDataParam ('args ' );
149149 foreach ($ args as $ key => $ value ) {
150150 $ args [$ key ] = $ this ->unmarshal ($ value );
151151 }
@@ -160,7 +160,7 @@ private function _call_function(Context $ctx): void
160160 if (count ($ this ->allowedFunctions ) > 0 and !isset ($ this ->allowedFunctions [$ fn ])) {
161161 throw new Exception ("function[ {$ fn }] not allowed " );
162162 }
163- $ args = unserialize ( $ ctx ->getParam ('args ' ) );
163+ $ args = $ ctx ->getDataParam ('args ' );
164164 foreach ($ args as $ key => $ value ) {
165165 $ args [$ key ] = $ this ->unmarshal ($ value );
166166 }
@@ -182,7 +182,7 @@ private function _call_method(Context $ctx): void
182182 throw new Exception ("object[# {$ object_id }] not found " );
183183 }
184184 $ method = $ ctx ->getParam ('method ' );
185- $ args = unserialize ( $ ctx ->getParam ('args ' ) );
185+ $ args = $ ctx ->getDataParam ('args ' );
186186 foreach ($ args as $ key => $ value ) {
187187 $ args [$ key ] = $ this ->unmarshal ($ value );
188188 }
@@ -217,7 +217,7 @@ private function _write_property(Context $ctx): void
217217 {
218218 $ object_id = $ ctx ->getParam ('object ' );
219219 $ property = $ ctx ->getParam ('property ' );
220- $ value = unserialize ( $ ctx ->getParam ('value ' ) );
220+ $ value = $ ctx ->getDataParam ('value ' );
221221 if (!isset ($ this ->objects [$ object_id ])) {
222222 throw new Exception ("object[# {$ object_id }] not found " );
223223 }
@@ -265,7 +265,7 @@ private function _offset_set(Context $ctx): void
265265 {
266266 $ object_id = $ ctx ->getParam ('object ' );
267267 $ offset = $ ctx ->getParam ('offset ' );
268- $ value = unserialize ( $ ctx ->getParam ('value ' ) );
268+ $ value = $ ctx ->getDataParam ('value ' );
269269 if (!isset ($ this ->objects [$ object_id ])) {
270270 throw new Exception ("object[# {$ object_id }] not found " );
271271 }
0 commit comments