about summary refs log tree commit homepage
path: root/public-inbox.cgi
DateCommit message (Collapse)
2015-08-16www: /t/$MESSAGE_ID.html for threads
This should bring up nearly the entire thread a given Message-ID is linked to.
2014-05-01split out WWW package and CGI/PSGI-specific parts
This should allow us to more-easily test with Plack.
2014-04-30cgi: set charset in responses
This ought to prevent browsers from misguessing/misdetecting things.
2014-04-30add example configs for Apache2 mod_perl and CGI
These are probably still popular configurations in some settings, so include sample configurations to get folks started. These are trickier than an average CGI script to setup because we rely on pretty URLs from PATH_INFO and not ugly query parameters.
2014-04-30cgi: avoid warning after exec
Found with mod_perl2 (as it overrides exit).
2014-04-30cgi: remove dependency on IPC::Run in CGI
We may not have PATH available on some servers (e.g. webrick) and must rely on the hardcoded system PATH. My installation of IPC::Run does not seem to work without PATH set in the env, however normal Perl "open" calls work fine.
2014-04-30cgi: disable warnings for CGI::NOSTICKY
We probably know what we're doing, here...
2014-04-30favor "--git-dir=..." over "--git-dir ..."
This might improve grep-ability slightly and reduce allocations while we're at it.
2014-04-29cgi: mid2blob does not depend on $ENV{GIT_DIR}
ENV changes do not propagate to child processes under mod_perl
2014-04-29implement our own cat-file --batch wrapper
We use --git-dir=... instead of $ENV{GIT_DIR} because ENV changes do not propagate easily with mod_perl.
2014-04-28cgi: make CGI optional for Plack users
CGI.pm is on its way out, so do not make it a hard requirement for Plack users. We still support CGI-only installations because some sysadmins and distros may be very conservative.
2014-04-28cgi: wrap self_uri calls for Plack::Request
We should be adding automated tests for this, soon.
2014-04-28cgi: do not decode path_info
We only generate URI-escaped URLs, so we should not be decoding this into octets.
2014-04-28allow running as a Plack app without CGI emulation
This might be slightly cleaner, though generating the base URL now has an ugly condition in it.
2014-04-28uri_escape => uri_escape_utf8
We should be able to deal with URIs with non-ASCII characters in them. I only found this problem when looking at archives with non-English spam :x
2014-04-28cgi: preliminary Plack compatibility
This needs further testing and refactoring, but seems to work reasonably well.
2014-04-26cgi: style: return undef => return
2014-04-26huge refactor of encoding handling
Hopefully this simplifies and corrects our usage of Perl encoding APIs.
2014-04-25cgi: eliminate dead/redundant HTML escaping code
2014-04-22view: fix link to raw message from /f/ endpoint
Ugh, at least this has a test...
2014-04-22fix quoted URL generation in feeds
While we're at it, make sure strange characters are escaped properly in Message-IDs. We'll need tests for all this behavior.
2014-04-21feed: there is only one atom feed, with all messages
This is not a blog. All posts, whether replies or not, carry equal weight.
2014-04-20cgi: delay some requires
This shaves off nearly 100ms when my Core2Duo is clocked to 800Mhz when rendering a full HTML index.
2014-04-19cgi: index pages allow iterating some pagination
This allows WWW readers to slowly page through the entire history of the mailing list.
2014-04-17cgi: implement suffix-less Message-ID redirects
This may be easier in some cases for copy+paste, but not 100% reliable in case the .txt and .html suffixes are in the Message-ID itself.
2014-04-17cgi: include HTTP status in error message body
This makes it slightly easier for out-of-the-box curl users since curl does not report or show the error by default.
2014-04-15Revert "cgi: relax path restriction for top-level"
CGI mounts should probably handle this internally. We're reverting this since it adds too much potential for abuse with fake/extra prefixes in the URL. We also need to reorder our redirect handling as a result. This reverts commit c394de9f2c91c2c5ed1f7832a5a7cc0206120b7f.
2014-04-15cgi: correct links to folded quotes
Lightly tested, but this seems to work OK.
2014-04-15cgi: support /all.html page with inline threads
Maybe this increases readability for now.
2014-04-14cgi: 301 for list-indices without trailing slash
It is common to type upper-level URLs without the slash, redirect users to the correct page for usability.
2014-04-12cgi: ensure we unescape MIDs correctly in URLs
MIDs may have strange characters in them, so we need to handle escaping/unescaping properly to avoid broken links or worse.
2014-04-12cgi: avoid parsing ENV directly for PATH_INFO
This might make it easier to go to non-CGI things.
2014-04-12cgi: relax path restriction for top-level
We may have something like /foo.cgi/m/$MID.html in there.
2014-04-12cgi: rename to have .cgi suffix
This makes it easier to configure for systems which determine a script is a CGI script based on suffix.