mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
XSS 시도를 제거하기 위한 코드에서 에디터 컴포넌트가 동작하지 않게 하는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4316 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7fd72f3193
commit
abaa76af44
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@
|
||||||
function removeJSEvent($matches) {
|
function removeJSEvent($matches) {
|
||||||
$tag = strtolower($matches[1]);
|
$tag = strtolower($matches[1]);
|
||||||
if($tag == "a" && preg_match('/href=("|\'?)javascript:/i',$matches[2])) $matches[0] = preg_replace('/href=("|\'?)javascript:/i','href=$1_javascript:', $matches[0]);
|
if($tag == "a" && preg_match('/href=("|\'?)javascript:/i',$matches[2])) $matches[0] = preg_replace('/href=("|\'?)javascript:/i','href=$1_javascript:', $matches[0]);
|
||||||
return preg_replace('/on([a-z]+)=/i','_on$1=',$matches[0]);
|
return preg_replace('/ on([a-z]+)=/i',' _on$1=',$matches[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// hexa값을 RGB로 변환
|
// hexa값을 RGB로 변환
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue