mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
issue 2585 check method in _SERVER.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11805 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d42341f97a
commit
775069466f
1 changed files with 2 additions and 1 deletions
|
|
@ -295,7 +295,8 @@
|
|||
$layout_srl = Context::get('layout_srl');
|
||||
$code = Context::get('code');
|
||||
$code_css = Context::get('code_css');
|
||||
$is_post = (Context::getRequestMethod() == 'POST');
|
||||
$is_post = ($_SERVER['REQUEST_METHOD'] == 'POST');
|
||||
|
||||
if(!$layout_srl || !$code || !$is_post)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue