This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new 9b7ad5d WICKET-6650 Url decode the name of the file after
AjaxDownload with Location == Blob
9b7ad5d is described below
commit 9b7ad5d18a4e39fb7f52abace6c47dd3ae7867cc
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Fri Apr 5 13:15:03 2019 +0300
WICKET-6650 Url decode the name of the file after AjaxDownload with
Location == Blob
(cherry picked from commit ac20fab1627c49adb213c2a448a5d8f5dd20518e)
---
.../main/java/org/apache/wicket/extensions/ajax/wicket-ajaxdownload.js | 1 +
1 file changed, 1 insertion(+)
diff --git
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/wicket-ajaxdownload.js
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/wicket-ajaxdownload.js
index 6aaa43a..e8930d0 100644
---
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/wicket-ajaxdownload.js
+++
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/wicket-ajaxdownload.js
@@ -110,6 +110,7 @@
var matches =
/filename[^;=\n]*=(([""]).*?\2|[^;\n]*)/.exec(disposition);
if (matches !== null &&
matches[1]) {
filename =
matches[1].replace(/[""]/g, "");
+ filename =
decodeURIComponent(filename);
}
}