diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-22 22:48:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-22 22:48:18 +0300 |
commit | 79e7b0c3e48ee75108bf072aa174fb034dfaf86e (patch) | |
tree | 05812c0ab77d2154232ae6d73dbd07981c474510 /mod | |
parent | 57204e964ec4423b6bb240404520ed240e9db9a0 (diff) |
Fix double-slashes in build notification email URLs
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-build-result.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mod/mod-build-result.cxx b/mod/mod-build-result.cxx index 9f6455a..917a6d0 100644 --- a/mod/mod-build-result.cxx +++ b/mod/mod-build-result.cxx @@ -311,7 +311,7 @@ handle (request& rq, response&) sm.out << "No operations results available." << endl; else { - string url (options_->host () + options_->root ().string ()); + string url (options_->host () + options_->root ().representation ()); string pkg (mime_url_encode (b->package_name)); string cfg (mime_url_encode (b->configuration)); @@ -324,12 +324,13 @@ handle (request& rq, response&) const version& ver (b->package_version); for (const auto& r: b->results) - sm.out << r.operation << ": " << r.status << ", " << url << '/' << pkg - << '/' << ver << "/log/" << cfg << '/' << r.operation << endl; + sm.out << r.operation << ": " << r.status << ", " << url << pkg << '/' + << ver << "/log/" << cfg << '/' << r.operation << endl; sm.out << endl - << "force rebuild: " << url << "?build-force&p=" << pkg - << "&v=" << ver << "&c=" << cfg << "&reason=" << endl << endl + << "force rebuild: " << options_->host () << options_->root () + << "?build-force&p=" << pkg << "&v=" << ver << "&c=" << cfg + << "&reason=" << endl << endl << "Note: enter the rebuild reason in the above URL (" << "using '+' instead of space characters)." << endl; } |