Commit f5acd9ed authored by Chris Lamb's avatar Chris Lamb

Escape package name in "Schedule a new build" links

eg. getfem++
parent 04cb3e61
......@@ -12,6 +12,7 @@
import os
import errno
import urllib
import pystache
import apt_pkg
apt_pkg.init_system()
......@@ -256,6 +257,7 @@ def gen_suitearch_section(package, current_suite, current_arch):
dbd_page_uri = dbd_links.get('dbd_page_uri', '')
suites.append({
'package': package.name,
'package_quote_plus': urllib.parse.quote_plus(package.name),
'status': status.value.name,
'version': version,
'build_date': build_date,
......
......@@ -17,7 +17,7 @@
<a href="{{package_uri}}" target="_parent" title="{{spokenstatus}}: {{version}} on {{build_date}}">
{{version}}
</a> in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
<a href="/cgi-bin/schedule?suite={{suite}}&architecture={{arch}}&pkg={{package}}" target="_parent" title="Schedule a new build"></a>
<a href="/cgi-bin/schedule?suite={{suite}}&architecture={{arch}}&pkg={{package_quote_plus}}" target="_parent" title="Schedule a new build"></a>
{{/current_suitearch}}
{{#current_suitearch}}
{{version}} in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment