Stay inside the current URL scheme
If the web server is configured to serve the Girocco/gitweb pages
over both http and https, then previously the full URL configured
as $Girocco::Config::webadmurl, $Girocco::Config::gitweburl,
$Girocco::Config::gitwebfiles and $Girocco::Config::htmlurl would
be embedded in any href=/src= links in pages being served up via
the web server.
This means that if the Girocco::Config values use 'http:' then
web pages viewed using 'https:' would tend to escape to 'http:'
and vice versa.
Instead only embed the full URL path, but not the scheme or
host part so that escape does not occur.
14 files changed: