[-] BO : Upload image name with trailing slash in name

This commit is contained in:
Gregory Roussac
2013-06-15 01:55:02 +02:00
parent 4e8c5a24df
commit ce9f262feb
3 changed files with 8 additions and 8 deletions
@@ -60,7 +60,7 @@
$tem[$k] = $v;
}
$tem['path'] = backslashToSlash($path);
$tem['path'] = addslashes(backslashToSlash($path));
$tem['type'] = "file";
$tem['size'] = transformFileSize($tem['size']);
$tem['ctime'] = date(DATE_TIME_FORMAT, $tem['ctime']);
@@ -73,7 +73,7 @@
$info .= sprintf(", %s:'%s'", $k, $v);
}
$info .= sprintf(", url:'%s'", getFileUrl($path));
$info .= sprintf(", url:'%s'", addslashes(getFileUrl($path)));
$info .= sprintf(", tipedit:'%s'", TIP_DOC_RENAME);