Consistently handle trailing slashes in subpage links.
authorC. Scott Ananian <cscott@cscott.net>
Fri, 14 Nov 2014 21:38:04 +0000 (16:38 -0500)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 14 Nov 2014 22:09:00 +0000 (17:09 -0500)
commit8a797162f0d35edbc693784381b0091b76f513a0
tree9c7dd8112943cf350e315d997f19b4bff58a0732
parentf77fd8e98e1b2c374518cb667b99387fce939a69
Consistently handle trailing slashes in subpage links.

The link text for [[/Foo/]] is `Foo` and the link text for
[[../Foo/]] is `Foo`.  So far so good.

But the link text for [[/Foo//]] is `Foo` while the link text
for [[../Foo//]] is `Foo/`.  We are stripping all trailing slashes
in the first case, but not the second.

Fix the code so that we strip all trailing slashes in both cases.
Update some of the comments in the code while we are at it.

Change-Id: Id61eacafea9820c404699a7902c8eb8102779516
includes/Linker.php
tests/parser/parserTests.txt