so that they'll be properly validated (and in particular coerced to integers).
* (bug 15845) Added pageid/fromid parameter to action=delete/move, making
manipulation of legacy pages with invalid titles possible
* (bug 15881) Empty or invalid parameters cause database errors
+* The maxage and smaxage parameters are now properly validated
=== Languages updated in 1.14 ===
if($this->mSquidMaxage == -1)
{
# Nobody called setCacheMaxAge(), use the (s)maxage parameters
- $smaxage = $this->mRequest->getVal('smaxage', 0);
- $maxage = $this->mRequest->getVal('maxage', 0);
+ $smaxage = $this->getParameter('smaxage');
+ $maxage = $this->getParameter('maxage');
}
else
$smaxage = $maxage = $this->mSquidMaxage;