Index: trunk/phase3/includes/api/ApiFormatJson.php |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | $params = $this->extractRequestParams(); |
56 | 56 | $callback = $params['callback']; |
57 | 57 | if(!is_null($callback)) { |
58 | | - $prefix = ereg_replace("[^_A-Za-z0-9]", "", $callback ) . "("; |
| 58 | + $prefix = preg_replace("/[^][.\\'\\\"_A-Za-z0-9]/", "", $callback ) . "("; |
59 | 59 | $suffix = ")"; |
60 | 60 | } |
61 | 61 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -193,6 +193,7 @@ |
194 | 194 | * (bug 13606) Added archivename to iiprop |
195 | 195 | * (bug 11633) Explicitly convert redirect titles to strings due to PHP's |
196 | 196 | very weak typing on array keys. |
| 197 | +* (bug 12136) Extend allowed characters in JSON callback to ][.'"_A-Za-z0-9 |
197 | 198 | |
198 | 199 | === Languages updated in 1.13 === |
199 | 200 | |