Skip to content

Commit

Permalink
fix escaping title
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceK33z committed Dec 19, 2016
1 parent e979c3b commit 5911ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function doPlexRequest(options) {
};
const requests = sectionIds.map((sectionId) => {
const url = `${config.server.url}/library/sections/${sectionId}/all`;
return fetch(`${url}?title=${options.title}&year=${options.year}`, {
return fetch(`${url}?title=${encodeURIComponent(options.title)}&year=${options.year}`, {
headers,
})
.then(res => res.json());
Expand Down

0 comments on commit 5911ea3

Please sign in to comment.