Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -290,8 +290,8 @@ |
291 | 291 | if($this->mSquidMaxage == -1) |
292 | 292 | { |
293 | 293 | # Nobody called setCacheMaxAge(), use the (s)maxage parameters |
294 | | - $smaxage = $this->mRequest->getVal('smaxage', 0); |
295 | | - $maxage = $this->mRequest->getVal('maxage', 0); |
| 294 | + $smaxage = $this->getParameter('smaxage'); |
| 295 | + $maxage = $this->getParameter('maxage'); |
296 | 296 | } |
297 | 297 | else |
298 | 298 | $smaxage = $maxage = $this->mSquidMaxage; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -324,6 +324,7 @@ |
325 | 325 | * (bug 15845) Added pageid/fromid parameter to action=delete/move, making |
326 | 326 | manipulation of legacy pages with invalid titles possible |
327 | 327 | * (bug 15881) Empty or invalid parameters cause database errors |
| 328 | +* The maxage and smaxage parameters are now properly validated |
328 | 329 | |
329 | 330 | === Languages updated in 1.14 === |
330 | 331 | |