Skip to content

Commit 71e6646

Browse files
committed
use encodeURI() instead of the deprecated escape()
1 parent b505507 commit 71e6646

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/www/shared/shiny.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,8 @@
26682668
this.form = document.createElement('form');
26692669
this.form.method = 'POST';
26702670
this.form.setAttribute('enctype', 'multipart/form-data');
2671-
this.form.action = "session/" + escape(this.config.sessionId) + "/upload2/" + escape(this.id);
2671+
this.form.action = "session/" + encodeURI(this.config.sessionId)
2672+
+ "/upload2/" + encodeURI(this.id);
26722673
this.form.id = 'shinyupload_form_' + this.id;
26732674
this.form.target = iframeId;
26742675
$(this.form).insertAfter(this.fileEl).append(this.fileEl);

0 commit comments

Comments
 (0)