This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch WICKET-6649-downport-for-wicket-8.x
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to
refs/heads/WICKET-6649-downport-for-wicket-8.x by this push:
new ac20fab WICKET-6650 Url decode the name of the file after
AjaxDownload with Location == Blob
ac20fab is described below
commit ac20fab1627c49adb213c2a448a5d8f5dd20518e
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
---
.../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);
}
}