File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11codebird-php - changelog
22========================
33
4- 2.3.1 (not yet released )
4+ 2.3.1 (2013-03-23 )
55- Re-remove statuses/sample. It's streaming API, which Codebird doesn't currently support
6+ + Don't send multipart POST to non-multipart methods, fix issue #8
7+ + Remove auto-added backslashes from parsed API method parameters if magic quotes are on, fix #7
68
792.3.0 (2013-03-19)
810+ Update README with info about how to get details of the current user
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class Codebird
9494 /**
9595 * The current Codebird version
9696 */
97- private $ _version = '2.3.0 ' ;
97+ private $ _version = '2.3.1 ' ;
9898
9999 /**
100100 * Returns singleton class instance
@@ -192,6 +192,16 @@ public function __call($fn, $params)
192192 $ apiparams = $ params [0 ];
193193 } else {
194194 parse_str ($ params [0 ], $ apiparams );
195+ // remove auto-added slashes if on magic quotes steroids
196+ if (get_magic_quotes_gpc ()) {
197+ foreach ($ apiparams as $ key => $ value ) {
198+ if (is_array ($ value )) {
199+ $ apiparams [$ key ] = array_map ('stripslashes ' , $ value );
200+ } else {
201+ $ apiparams [$ key ] = stripslashes ($ value );
202+ }
203+ }
204+ }
195205 }
196206 }
197207 $ app_only_auth = false ;
You can’t perform that action at this time.
0 commit comments