Private GIT

Skip to content
Snippets Groups Projects
Commit 3fce9ecd authored by miigotu's avatar miigotu
Browse files

Use mako's uri escaping to prevent errors adding shows with & in the name

parent 84c7f193
Branches
Tags
No related merge requests found
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<p>${int(float(cur_rating)*10)}% <img src="${srRoot}/images/heart.png"></p> <p>${int(float(cur_rating)*10)}% <img src="${srRoot}/images/heart.png"></p>
<i>${cur_votes} votes</i> <i>${cur_votes} votes</i>
<div class="traktShowTitleIcons"> <div class="traktShowTitleIcons">
<a href="${srRoot}/addShows/addShowByID?indexer_id=${cur_result['imdb_tt']}&amp;show_name=${cur_result['name']}&amp;indexer=IMDB" class="btn btn-xs" data-no-redirect>Add Show</a> <a href="${srRoot}/addShows/addShowByID?indexer_id=${cur_result['imdb_tt']}&amp;show_name=${cur_result['name'] | u}&amp;indexer=IMDB" class="btn btn-xs" data-no-redirect>Add Show</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<p>${int(cur_show['show']['rating']*10)}% <img src="${srRoot}/images/heart.png"></p> <p>${int(cur_show['show']['rating']*10)}% <img src="${srRoot}/images/heart.png"></p>
<i>${cur_show['show']['votes']} votes</i> <i>${cur_show['show']['votes']} votes</i>
<div class="traktShowTitleIcons"> <div class="traktShowTitleIcons">
<a href="${srRoot}/addShows/addShowByID?indexer_id=${cur_show['show']['ids']['tvdb']}&amp;show_name=${cur_show['show']['title']}" class="btn btn-xs" data-no-redirect>Add Show</a> <a href="${srRoot}/addShows/addShowByID?indexer_id=${cur_show['show']['ids']['tvdb']}&amp;show_name=${cur_show['show']['title'] | u}" class="btn btn-xs" data-no-redirect>Add Show</a>
% if blacklist: % if blacklist:
<a href="${srRoot}/addShows/addShowToBlacklist?indexer_id=${cur_show['show']['ids']['tvdb'] or cur_show['show']['ids']['tvrage']}" class="btn btn-xs">Remove Show</a> <a href="${srRoot}/addShows/addShowToBlacklist?indexer_id=${cur_show['show']['ids']['tvdb'] or cur_show['show']['ids']['tvrage']}" class="btn btn-xs">Remove Show</a>
% endif % endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment