diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-07 19:09:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-10 22:03:18 +0300 |
commit | 21033565488f6c63b4c40962cccfdc8b6ca32b2a (patch) | |
tree | 44732ab7e1c7a7b25e64b82bf61d293f6cff2f86 /mod/mod-package-search.cxx | |
parent | 026377d0c145277b24b3af5fdcf707222e854bd3 (diff) |
Add support for package submission
Diffstat (limited to 'mod/mod-package-search.cxx')
-rw-r--r-- | mod/mod-package-search.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/mod-package-search.cxx b/mod/mod-package-search.cxx index d7a2b98..d53397e 100644 --- a/mod/mod-package-search.cxx +++ b/mod/mod-package-search.cxx @@ -38,7 +38,7 @@ package_search (const package_search& r) void brep::package_search:: init (scanner& s) { - MODULE_DIAG; + HANDLER_DIAG; options_ = make_shared<options::package_search> ( s, unknown_mode::fail, unknown_mode::fail); @@ -82,7 +82,7 @@ handle (request& rq, response& rs) { using namespace web::xhtml; - MODULE_DIAG; + HANDLER_DIAG; const size_t res_page (options_->search_results ()); const dir_path& root (options_->root ()); @@ -92,7 +92,7 @@ handle (request& rq, response& rs) try { - name_value_scanner s (rq.parameters ()); + name_value_scanner s (rq.parameters (8 * 1024)); params = params::package_search ( s, unknown_mode::fail, unknown_mode::fail); } @@ -125,7 +125,10 @@ handle (request& rq, response& rs) // element of the search form. The problem appears in Firefox and has a // (4-year old, at the time of this writing) bug report: // - // https://bugzilla.mozilla.org/show_bug.cgi?id=712130. + // https://bugzilla.mozilla.org/show_bug.cgi?id=712130 + // + // @@ An update: claimed to be fixed in Firefox 60 that is released in + // May 2018. Is it time to cleanup? Remember to cleanup in all places. // << SCRIPT << " " << ~SCRIPT << ~HEAD |