request argument를 변조한 XSS 시도 방지 코드 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4581 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-10-01 07:56:43 +00:00
parent 81ac933a7a
commit 96af126a82

View file

@ -162,7 +162,7 @@
if($this->get_vars) {
foreach($this->get_vars as $key => $val) {
if(!$val) continue;
$url .= ($url?'&':'').$key.'='.$val;
$url .= ($url?'&':'').$key.'='.urlencode($val);
}
Context::set('current_url',sprintf('%s?%s', $this->getRequestUri(), $url));
} else {