mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
11e00b01d1
1 changed files with 9 additions and 9 deletions
|
|
@ -67,15 +67,6 @@ class pageView extends page
|
|||
{
|
||||
Context::set('module_srl', $this->module_srl);
|
||||
}
|
||||
|
||||
// Kick out anyone who tries to exploit RVE-2022-2.
|
||||
foreach (Context::getRequestVars() as $key => $val)
|
||||
{
|
||||
if (preg_match('/[\{\}\(\)<>\$\'"]/', $key) || preg_match('/[\{\}\(\)<>\$\'"]/', $val))
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\SecurityViolation();
|
||||
}
|
||||
}
|
||||
|
||||
// Get page content according to page type.
|
||||
$page_type_name = strtolower($this->module_info->page_type);
|
||||
|
|
@ -167,6 +158,15 @@ class pageView extends page
|
|||
return;
|
||||
}
|
||||
|
||||
// Kick out anyone who tries to exploit RVE-2022-2.
|
||||
foreach (Context::getRequestVars() as $key => $val)
|
||||
{
|
||||
if (preg_match('/[\{\}\(\)<>\$\'"]/', $key) || preg_match('/[\{\}\(\)<>\$\'"]/', $val))
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\SecurityViolation();
|
||||
}
|
||||
}
|
||||
|
||||
// External URL
|
||||
if (preg_match('!^[a-z]+://!i', $this->path))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue