파일 이름에 &나 %등의 기호가 들어갈때 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6315 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-05-12 14:17:48 +00:00
parent 635fe75136
commit 8b866a1336
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@
}
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
$src = str_replace('&', '&', $src);
if(!$alt) $alt = $src;
$attr_output = array();

View file

@ -264,6 +264,7 @@ function completeReloadFileList(ret_obj, response_tags, settings) {
uploadedFiles[file_srl] = item[i];
var opt = new Option(item[i].source_filename+" ("+item[i].disp_file_size+")", file_srl, true, true);
listObj.options[listObj.options.length] = opt;
item[i].download_url = encodeURI(item[i].download_url);
if(/\.(jpg|jpeg|png|gif)$/i.test(item[i].download_url)) {
var loadingImage = new Image();
loadingImage.src = item[i].download_url;