File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
codebird-php - changelog
2
2
========================
3
3
4
- 2.3.1 (not yet released )
4
+ 2.3.1 (2013-03-23 )
5
5
- 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
6
8
7
9
2.3.0 (2013-03-19)
8
10
+ 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
94
94
/**
95
95
* The current Codebird version
96
96
*/
97
- private $ _version = '2.3.0 ' ;
97
+ private $ _version = '2.3.1 ' ;
98
98
99
99
/**
100
100
* Returns singleton class instance
@@ -192,6 +192,16 @@ public function __call($fn, $params)
192
192
$ apiparams = $ params [0 ];
193
193
} else {
194
194
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
+ }
195
205
}
196
206
}
197
207
$ app_only_auth = false ;
You can’t perform that action at this time.
0 commit comments