에디터에서 mss:// 경로에 대해서 경로 변경을 하지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6383 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-25 00:04:42 +00:00
parent 6f3d00d3de
commit 90a37a23d7
2 changed files with 4 additions and 4 deletions

View file

@ -5436,7 +5436,7 @@ var
regex_quote_attr = /([\w-]+\s*=(?:\s*"[^"]+"|\s*'[^']+'))|([\w-]+)=([^\s]+)/g; //"
var
allow_tags = 'a,abbr,acronym,address,area,blockquote,br,caption,center,cite,code,col,colgroup,dd,del,dfn,div,dl,dt,em,embed,h1,h2,h3,h4,h5,h6,hr,img,ins,kbd,li,map,object,ol,p,param,pre,q,samp,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,u,ul,var,iframe,object,param'.split(','),
allow_tags = 'a,abbr,acronym,address,area,blockquote,br,caption,center,cite,code,col,colgroup,dd,del,dfn,div,dl,dt,em,embed,h1,h2,h3,h4,h5,h6,hr,img,ins,kbd,li,map,object,ol,p,param,pre,q,samp,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,u,ul,var,iframe,object,param,style'.split(','),
lonely_tags = 'area,br,col,embed,hr,img,input,param'.split(',');
var

View file

@ -59,7 +59,7 @@ function editorStart_xe(editor_sequence, primary_key, content_key, editor_height
content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>)*/ig, function(m0,m1,m2,m3,m4,m5) {
if(m1=="url(") { m2=''; m4=')'; } else { if(typeof(m2)=='undefined') m2 = '"'; if(typeof(m4)=='undefined') m4 = '"'; if(typeof(m5)=='undefined') m5 = ''; }
var val = jQuery.trim(m3).replace(/^\.\//,'');
if(/^(http|https|ftp|telnet|\/|\.\.)/i.test(val)) return m0;
if(/^(http|https|ftp|telnet|mms|\/|\.\.)/i.test(val)) return m0;
return m1+m2+request_uri+val+m4+m5;
});
@ -180,7 +180,7 @@ function editorReplaceHTML(iframe_obj, content) {
content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>)*/ig, function(m0,m1,m2,m3,m4,m5) {
if(m1=="url(") { m2=''; m4=')'; } else { if(typeof(m2)=='undefined') m2 = '"'; if(typeof(m4)=='undefined') m4 = '"'; if(typeof(m5)=='undefined') m5 = ''; }
var val = jQuery.trim(m3).replace(/^\.\//,'');
if(/^(http|https|ftp|telnet|\/|\.\.)/i.test(val)) return m0;
if(/^(http|https|ftp|telnet|mms|\/|\.\.)/i.test(val)) return m0;
return m1+m2+request_uri+val+m4+m5;
});
@ -215,7 +215,7 @@ xe.XE_GET_WYSYWYG_CONTENT = jQuery.Class({
content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>)*/ig, function(m0,m1,m2,m3,m4,m5) {
if(m1=="url(") { m2=''; m4=')'; } else { if(typeof(m2)=='undefined') m2 = '"'; if(typeof(m4)=='undefined') m4 = '"'; if(typeof(m5)=='undefined') m5 = ''; }
var val = jQuery.trim(m3).replace(/^\.\//,'');
if(/^(http|https|ftp|telnet|\/|\.\.)/i.test(val)) return m0;
if(/^(http|https|ftp|telnet|mms|\/|\.\.)/i.test(val)) return m0;
return m1+m2+request_uri+val+m4+m5;
});