Compare commits

...

2 Commits

Author SHA1 Message Date
Will Rossiter
7370c85dae
Merge pull request #189 from tiller1010/hotfix/2.2.2/other-id-type-check 2023-07-14 16:32:29 +12:00
Tyler
bf6156c103 fix: added type check for other id 2023-07-13 15:38:30 -04:00

View File

@ -70,6 +70,12 @@ class GoogleSitemapController extends Controller
$class = $this->unsanitiseClassName($this->request->param('ID'));
$page = intval($this->request->param('OtherID'));
if ($page) {
if (!is_numeric($page)) {
return new HTTPResponse('Page not found', 404);
}
}
if (GoogleSitemap::enabled()
&& $class
&& ($page > 0)