aboutsummaryrefslogtreecommitdiff
path: root/lib/Apache/Inject
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-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 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-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-24Correct minimum Perl version (5.10.0)root
2021-04-24Fix bug when second argument is absent, improve documentationroot
Before, the InjectFoot variable wasn't cleared.
2021-04-24Re-arrange source coderoot
2021-04-24Expand documentationroot
2021-04-23Add documentationroot
2021-04-23Log errors via the Apache log APIroot
2021-04-23Change directory structureroot