Fix #1045: whitespace-separated queries in web

This commit is contained in:
Adrian Sampson 2014-10-27 23:14:28 -07:00
parent dd7cd2f8c2
commit 4f3cd65943
2 changed files with 4 additions and 1 deletions

View file

@ -146,7 +146,8 @@ var BeetsRouter = Backbone.Router.extend({
"item/query/:query": "itemQuery",
},
itemQuery: function(query) {
$.getJSON('/item/query/' + query, function(data) {
var queryURL = query.split(/\s+/).map(encodeURIComponent).join('/');
$.getJSON('/item/query/' + queryURL, function(data) {
var models = _.map(
data['results'],
function(d) { return new Item(d); }

View file

@ -55,6 +55,8 @@ Fixes:
:user:`multikatt`. :bug:`1027`, :bug:`1040`
* :doc:`/plugins/play`: Fix a potential crash when the command outputs special
characters. :bug:`1041`
* :doc:`/plugins/web`: Typed queries are now treated as separate query
components. :bug:`1045`
1.3.8 (September 17, 2014)