aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t0010-validate-html.sh
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2007-09-20 07:56:53 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2007-09-20 07:56:53 (JST)
commit4e40d8507ea9a3b5082ae690190e9d41c5b49ae2 (patch)
tree119531367d7a5359ff62d1f050d9858d48b90179 /tests/t0010-validate-html.sh
parent0835ffefb8a1f5387463b22e2e5f7e34d387d7b1 (diff)
downloadcgit-4e40d8507ea9a3b5082ae690190e9d41c5b49ae2.zip
cgit-4e40d8507ea9a3b5082ae690190e9d41c5b49ae2.tar.gz
Use trim_end() to remove trailing slashes
All urls and paths read from cgitrc needs to be 'normalized', i.e. get any trailing slashes removed, and the trim_end() function works out nice for this purpose. Removing the trailing slashes also happens to fix the case where the virtual root should be a single slash; that case used to require specifying the full hostname (including the http:// prefix), but now it can simply be specified as /. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'tests/t0010-validate-html.sh')
0 files changed, 0 insertions, 0 deletions