* [PATCH] www_stream: fix search for new.html endpoint
@ 2016-07-01 0:30 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-07-01 0:30 UTC (permalink / raw)
To: meta
We want to avoid the bare './' wherever possible, but it
doesn't seem possible here.
---
lib/PublicInbox/WwwStream.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index 6de1b31..d9abb5a 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -39,7 +39,8 @@ sub _html_top ($) {
}
# XXX gross, for SearchView.pm
my $extra = $ctx->{-extra_form_html} || '';
- $top = qq{<form\naction="$upfx"><pre>$top} .
+ my $action = $upfx eq '' ? './' : $upfx;
+ $top = qq{<form\naction="$action"><pre>$top} .
qq{ <input\nname=q\ntype=text$q_val/>} .
$extra .
qq{<input\ntype=submit\nvalue=search />} .
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-01 0:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01 0:30 [PATCH] www_stream: fix search for new.html endpoint Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).