mirror of
https://github.com/beetbox/beets.git
synced 2026-02-03 14:01:49 +01:00
Fix #1045: whitespace-separated queries in web
This commit is contained in:
parent
dd7cd2f8c2
commit
4f3cd65943
2 changed files with 4 additions and 1 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue