aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-29Fix filter-related bugHEADmasterroot
Apparently, an Apache filter can be invoked more than once for a single request, depending on the size of the contents [1]. Luckily, though, a filter can save state in the ctx field [1,2]. The solution isn't perfect, as it can't handle arbitrary long heads, but they're very unlikely. [1] https://httpd.apache.org/docs/2.4/developer/output-filters.html#invocation [2] https://perl.apache.org/docs/2.0/user/handlers/filters.html#Introducing_Filters
2021-04-27Update MANIFESTroot
2021-04-27Clarify CAVEATSroot
2021-04-26Update prerequisitesroot
2021-04-26Use filter instead of handlerroot
This makes it work for HTML content that has already been processed, e.g., by PHP. This change was delightfully easy to make.
2021-04-26Fix bugroot
2021-04-26Remove test {head,foot}.html files, just create them when testingroot
This feels a bit cleaner and puts (most) everything in one place.
2021-04-26Fix regex bug, support HTML commentsroot
I added \s* after <body> to match any potential newline (and, for good measure, whitespace) after <body>. One would usually rather have this: <body> My header than this: <body>My header
2021-04-26Use single hyphen for NULL value, allow the user to specify itroot
This lets the user inject a footer without injecting a header.
2021-04-25Change formattingroot
2021-04-25Optimize regexroot
by arranging the alternatives in the order of their likeliness to occur.
2021-04-25Re-arrange testsroot
2021-04-25Remove auto-generated files from MANIFESTroot
2021-04-25Fix typoroot
2021-04-25Clarify installation instructionsroot
2021-04-25Skip tests if run as rootroot
Otherwise, I suspect App::Cpan will not be able to install the module without workarounds on the part of the user.
2021-04-25Clarify documentationroot
2021-04-24Correct minimum Perl version (5.10.0)root
2021-04-24t/basic.t: Create subdir if not presentroot
2021-04-24Fix bug when second argument is absent, improve documentationroot
Before, the InjectFoot variable wasn't cleared.
2021-04-24Fix dependencies, improve installation instructionsroot
2021-04-24Add mod_perl to synposisroot
2021-04-24Fix typoroot
2021-04-24Fix typoroot
2021-04-24Re-arrange source coderoot
2021-04-24Update documentation and READMEroot
2021-04-24Improve testing capabilitiesroot
2021-04-24Expand testsroot
2021-04-24Rewrite testroot
2021-04-24Add Makefile, basic testroot
2021-04-24Expand documentationroot
2021-04-23Add documentationroot
2021-04-23Log errors via the Apache log APIroot
2021-04-23Support quoted argumentsroot
2021-04-23Change directory structureroot
2021-04-23Propagate directive arguments to handler and read file contentsroot
2021-04-23Extend allowed places for directiveroot
2021-04-23Fix some bugsroot
2021-04-23First commitroot