Skip to content

Commit

Permalink
added htmldecode for path
Browse files Browse the repository at this point in the history
  • Loading branch information
MananJethwani committed Apr 6, 2021
1 parent 9626b03 commit fe25446
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ std::unique_ptr<Response> InternalServer::handle_suggest(const RequestContext& r
result.set("label", "containing '" + term + "'...");
result.set("value", term + " ");
result.set("kind", "pattern");
result.set("path", "");
result.set("first", first);
results.push_back(result);
}
Expand Down
1 change: 1 addition & 0 deletions static/skin/taskbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function htmlDecode(input) {
for(const item of ui.content) {
item.label = htmlDecode(item.label);
item.value = htmlDecode(item.value);
if (item.path) item.path = htmlDecode(item.path);
}
},

Expand Down
4 changes: 2 additions & 2 deletions static/templates/suggestion.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
{
"value" : "{{value}}",
"label" : "{{label}}",
"kind" : "{{kind}}",
"kind" : "{{kind}}"
{{#path}}
"path" : "{{path}}"
, "path" : "{{path}}"
{{/path}}
}{{/suggestions}}
]

0 comments on commit fe25446

Please sign in to comment.