Skip to content

Commit

Permalink
fix: issues-21 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxin630 authored and mickeyinfoshan committed Jul 3, 2018
1 parent 8ae74d1 commit d41b6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/src/api/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var api = {
return axios.get('/rule/filelist');
},
deleteFile(name){
return axios.get(`/rule/deletefile?name=${name}`);
return axios.get(`/rule/deletefile?name=${encodeURIComponent(name)}`);
},
setFileCheckStatus(name, checked){
return axios.get(`/rule/setfilecheckstatus?name=${name}&checked=${checked ? 1 : 0}`);
Expand Down

0 comments on commit d41b6d3

Please sign in to comment.