diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index ad0c69f7..a963b048 100755 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -276,6 +276,8 @@ function Bookmarks() //{{{ "Open a prompt to bookmark the current URL", function () { + function quote(str) commands.quoteArg['"'](str) + let title = ""; let keyword = ""; let tags = ""; @@ -286,7 +288,7 @@ function Bookmarks() //{{{ { let bmark = bmarks[0]; - title = " -title=\"" + bmark.title + "\""; + title = " -title=" + quote(bmark.title); if (bmark.keyword) keyword = " -keyword=\"" + bmark.keyword + "\""; if (bmark.tags.length > 0) @@ -295,7 +297,7 @@ function Bookmarks() //{{{ else { if (buffer.title != buffer.URL) - title = " -title=\"" + buffer.title + "\""; + title = " -title=" + quote(buffer.title); } commandline.open(":", "bmark " + buffer.URL + title + keyword + tags, modes.EX); diff --git a/common/content/commands.js b/common/content/commands.js index 0e4f83b4..647ed85c 100755 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -907,11 +907,11 @@ function Commands() //{{{ return [count, cmd, !!special, args || ""]; }, - /** @property @private */ - get complQuote() complQuote, // XXX: needed? + /** @property */ + get complQuote() complQuote, - /** @property @private */ - get quoteArg() quoteArg, // XXX: needed? + /** @property */ + get quoteArg() quoteArg, // XXX: better somewhere else? /** * Remove the user-defined command with matching name.