Skip to content

Commit

Permalink
#680 http_host 체크
Browse files Browse the repository at this point in the history
  • Loading branch information
akasima committed Apr 30, 2014
1 parent 403bb16 commit c178759
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions classes/context/Context.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ function init()
$this->context->lang = &$GLOBALS['lang'];
$this->context->_COOKIE = $_COOKIE;

// 20140429 editor/image_link
$this->_checkGlobalVars();

$this->setRequestMethod('');

$this->_setXmlRpcArgument();
Expand Down Expand Up @@ -1115,6 +1118,16 @@ function setRequestMethod($type = '')
($self->request_method = $_SERVER['REQUEST_METHOD']);
}

/**
* handle global arguments
*
* @return void
*/
function _checkGlobalVars()
{
$this->_recursiveCheckVar($_SERVER['HTTP_HOST']);
}

/**
* handle request areguments for GET/POST
*
Expand Down

0 comments on commit c178759

Please sign in to comment.