* [PATCH 1/3] viewvcs: allow '0' as a valid filename for blob downloads
2019-02-01 7:50 5% [PATCH 0/3] viewvcs odds and ends Eric Wong
@ 2019-02-01 7:50 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-02-01 7:50 UTC (permalink / raw)
To: meta
Only to be pedantic...
---
lib/PublicInbox/ViewVCS.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index eecc51e..d67b5eb 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -110,7 +110,7 @@ sub solve_result {
}
my $binary = index($$blob, "\0") >= 0;
- if ($fn) {
+ if (defined $fn) {
my $h = [ 'Content-Length', $size, 'Content-Type' ];
push(@$h, ($binary ? 'application/octet-stream' : 'text/plain'));
return delete($ctx->{-wcb})->([200, $h, [ $$blob ]]);
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] viewvcs odds and ends
@ 2019-02-01 7:50 5% Eric Wong
2019-02-01 7:50 7% ` [PATCH 1/3] viewvcs: allow '0' as a valid filename for blob downloads Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2019-02-01 7:50 UTC (permalink / raw)
To: meta
Some corner-case fixes around some odd filenames,
long paths and renames.
Eric Wong (3):
viewvcs: allow '0' as a valid filename for blob downloads
viewdiff: escape HTML ampersand for renames
viewdiff: support renames and long paths in diffstat anchors
lib/PublicInbox/View.pm | 1 +
lib/PublicInbox/ViewDiff.pm | 62 ++++++++++++++++++++++++++++---------
lib/PublicInbox/ViewVCS.pm | 2 +-
3 files changed, 49 insertions(+), 16 deletions(-)
--
EW
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-02-01 7:50 5% [PATCH 0/3] viewvcs odds and ends Eric Wong
2019-02-01 7:50 7% ` [PATCH 1/3] viewvcs: allow '0' as a valid filename for blob downloads Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).