mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Compare commits
2 Commits
a29de80408
...
7370c85dae
Author | SHA1 | Date | |
---|---|---|---|
|
7370c85dae | ||
|
bf6156c103 |
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user