mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
#18601228 Context::addJsFilter 메소드에서 "http://" 프로토콜을 제대로 지원하지 못하던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7169 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
571e54ffa3
commit
26b0a24b72
1 changed files with 2 additions and 2 deletions
|
|
@ -1169,8 +1169,8 @@
|
|||
* @brief js file을 추가
|
||||
**/
|
||||
function _addJsFile($file, $optimized, $targetie,$index) {
|
||||
if(strpos($file,'://')===false && substr($file,0,1)!='/' && substr($file,0,1)!='.') $file = './'.$file;
|
||||
$file = str_replace(array('/./','//'),'/',$file);
|
||||
if(strpos($file,'://')===false && $file{0}!='/' && $file{0}!='.') $file = './'.$file;
|
||||
$file = preg_replace('@/\./|(?<!:)\/\/@', '/', $file);
|
||||
while(strpos($file,'/../')) $file = preg_replace('/\/([^\/]+)\/\.\.\//s','/',$file);
|
||||
|
||||
if(in_array($file, $this->js_files)) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue