mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 2596 fixed a bug that check a real request method when upload files.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11787 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1cc9920274
commit
8c570adeff
1 changed files with 2 additions and 1 deletions
|
|
@ -851,6 +851,7 @@ class Context {
|
|||
|
||||
if($this->getRequestMethod()=='GET'&&isset($_GET[$key])) $set_to_vars = true;
|
||||
elseif($this->getRequestMethod()=='POST'&&isset($_POST[$key])) $set_to_vars = true;
|
||||
elseif($this->getRequestMethod()=='JS_CALLBACK' && (isset($_GET[$key]) || isset($_POST[$key]))) $set_to_vars = true;
|
||||
else $set_to_vars = false;
|
||||
|
||||
if($set_to_vars)
|
||||
|
|
@ -969,7 +970,7 @@ class Context {
|
|||
* @return void
|
||||
*/
|
||||
function _setUploadedArgument() {
|
||||
if($this->getRequestMethod() != 'POST') return;
|
||||
if($_SERVER['REQUEST_METHOD'] != 'POST') return;
|
||||
if(!preg_match('/multipart\/form-data/i',$_SERVER['CONTENT_TYPE'])) return;
|
||||
if(!$_FILES) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue