aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-12-25 08:37:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-12-28 14:42:17 +0300
commitbfec6fffb4acd9673ecf066a0e4f1b4baf2dd831 (patch)
treeca85d9db6ddeeaf1b89c488b9ed629511003566a /mod/mod-package-version-details.cxx
parent21d9f67600a53af44d0f7365074de5312a829193 (diff)
Make use of butl url encode() and decode() functions
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 134fb9a..26838f7 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -130,7 +130,9 @@ handle (request& rq, response& rs)
s << DIV(ID="heading")
<< H1
- << A(HREF=root / path (mime_url_encode (name))) << name << ~A
+ << A(HREF=root / path (mime_url_encode (name, false)))
+ << name
+ << ~A
<< "/"
<< A(HREF=url ()) << sver << ~A
<< ~H1
@@ -255,7 +257,7 @@ handle (request& rq, response& rs)
const auto& dcon (d.constraint);
const string& dname (p->id.name);
- string ename (mime_url_encode (dname));
+ string ename (mime_url_encode (dname, false));
if (r->url)
{