Merge pull request #465 from franckbret/master

[FIX] Correctly URI encode website new page title
This commit is contained in:
Fabien Meghazi 2014-06-11 11:23:07 +02:00
commit 53315288a8
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
}
}).then(function (val, field, $dialog) {
if (val) {
var url = '/website/add/' + encodeURI(val);
var url = '/website/add/' + encodeURIComponent(val);
if ($dialog.find('input[type="checkbox"]').is(':checked')) url +="?add_menu=1";
document.location = url;
}