Files
masyunis/test/gitweb/README.md
T
sol_bot Bot e07de898cd Import Anubis v1.28.2
Replace the tree with upstream TecharoHQ/anubis v1.28.2 (a1384fbf42e3).
Masyunis customizations are re-applied in the following commits.
2026-11-28 14:52:26 +03:00

1.1 KiB

gitweb

Tests gitweb, a Perl CGI script that gives web browsers an interface to git repositories.

Tale of woe

Gitweb is a CGI script from before the turn of the century. As a result it has the unique legacy behaviour of using semicolons as parameter separators. This is notably a WAF bypass technique in the hacker underground, as some poorly configured web applications will accept semicolons to separate URL parameters but the WAF only looks for ampersands.

Either way, when v1.26.0 was released, Anubis switched to using httputil.ReverseProxy.Rewrite instead of the deprecated Director. According to the Rewrite documentation comment, it's a lot more militant about correctness and conforming to what HTTP does in practice today, not what it did years ago.

This smoke test will make sure that using semicolons as URL query parameters continues working.