From c02fb9d4ab4f458de3dac240f5d9630b9bd95c2b Mon Sep 17 00:00:00 2001 From: jinlongtao Date: Wed, 26 Jun 2019 16:05:04 +0800 Subject: [PATCH] encodeURI filter When the filter contains a special symbol (for example: '/'), it will cause an error. --- lib/http/public/javascripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/public/javascripts/main.js b/lib/http/public/javascripts/main.js index 89f4784d..9b011c49 100755 --- a/lib/http/public/javascripts/main.js +++ b/lib/http/public/javascripts/main.js @@ -181,7 +181,7 @@ function refreshJobs(state, fn) { , visibleFrom = Math.max(0, Math.floor(top / jobHeight)) , visibleTo = Math.floor((top + height) / jobHeight) , url = './jobs/' - + (filter ? filter + '/' : '') + + (filter ? encodeURIComponent(filter) + '/' : '') + state + '/0..' + to + '/' + sort;