From 713a06f234837f7f79977ca08f3514ef763f572f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 5 Jun 2012 20:20:21 -0700 Subject: Do a better job of escaping filenames when uploading. Fixes #1881. --- modules/gallery/views/form_uploadify.html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/gallery/views/form_uploadify.html.php b/modules/gallery/views/form_uploadify.html.php index ba4a3621..22332e82 100644 --- a/modules/gallery/views/form_uploadify.html.php +++ b/modules/gallery/views/form_uploadify.html.php @@ -59,8 +59,9 @@ var re = /^error: (.*)$/i; var msg = re.exec(response); $("#g-add-photos-status ul").append( - "
  • " + fileObj.name + " - " + + "
  • - " + for_js() ?> + "
  • "); + $("#g-add-photos-status li#q" + queueID + " span").text(fileObj.name); setTimeout(function() { $("#q" + queueID).slideUp("slow").remove() }, 5000); success_count++; update_status(); @@ -92,7 +93,8 @@ error_msg + ""; $("#g-add-photos-status ul").append( - "
  • " + fileObj.name + msg + "
  • "); + "
  • " + msg + "
  • "); + $("#g-add-photos-status li#q" + queueID + " span").text(fileObj.name); $("#g-uploadify").uploadifyCancel(queueID); error_count++; update_status(); -- cgit v1.2.3