Fix Handling of Encoded Paths in Save As Dialog (#6030)

This commit is contained in:
Afshin Taylor Darian 2021-04-01 17:28:51 +01:00 committed by GitHub
parent 7e8fb1a787
commit 2cfff07a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2867,6 +2867,7 @@ define([
var that = this;
var current_dir = $('body').attr('data-notebook-path').split('/').slice(0, -1).join("/");
current_dir = current_dir? current_dir + "/": "";
current_dir = decodeURIComponent(current_dir);
var dialog_body = $('<div/>').append(
$('<p/>').addClass('save-message')
.text(i18n.msg._('Enter a notebook path relative to notebook dir'))