Files
web2py/gluon/tests
Chen Rotem Levy 9877ad5155 fix in_base for base='/'
If the base directory already ends with '/' the test failed.

It failed because we added an extra '/' to make sure that '/foobar' is
not under '/foo', so ask '/foobar/'.startswith('/foo/').

Whoever when we have the base already start with '/' we might test:
'/foo/bar/'.startwith('/foo//'), and give a false negative.  We
shouldn't have this case, because we normalized the path, but in the
case of the root directory ('/') even a normalized path ends with '/',
and thus when base='/' this function failed.

Some re-factoring was needed to make this base testable.
2016-06-11 12:19:16 +03:00
..
2015-01-17 00:07:10 -06:00
2016-05-11 00:47:23 +01:00
2015-01-17 00:07:10 -06:00
2016-04-04 22:58:42 +02:00
2015-12-17 21:19:08 -06:00
2015-02-24 23:34:27 +01:00
2016-04-21 20:12:00 +01:00
2015-01-17 00:07:10 -06:00
2015-01-17 00:07:10 -06:00
2015-12-17 21:19:08 -06:00
2016-06-11 12:19:16 +03:00
2016-05-19 19:03:54 +01:00