Files
web2py/gluon
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
..
2016-05-12 16:14:01 +02:00
2016-06-11 12:19:16 +03:00
2015-03-12 09:35:28 -05:00
2016-03-25 15:54:01 -04:00
2016-05-11 01:03:04 +01:00
2014-01-27 22:56:58 +01:00
2016-04-30 13:41:11 +03:00
2014-01-27 22:56:58 +01:00
2015-12-17 21:19:08 -06:00
2016-04-14 04:13:18 +01:00
2014-01-29 23:01:52 +01:00
2015-03-19 00:04:24 +01:00
2016-05-28 22:25:58 +02:00
2014-01-29 23:01:52 +01:00
2015-03-06 22:06:37 -05:00
2016-05-11 00:47:23 +01:00
2015-03-06 22:12:56 -05:00
2015-03-06 22:14:10 -05:00
2016-01-04 13:23:22 +01:00
2016-03-14 15:20:08 -05:00
2016-02-26 13:52:00 -06:00
2016-05-11 00:47:23 +01:00
2016-05-11 00:47:23 +01:00
2015-03-06 22:24:02 -05:00
2015-09-21 22:09:17 +02:00
2014-12-15 22:24:04 +01:00
2015-05-14 12:24:58 -03:00
2016-01-05 07:29:53 -06:00
2015-12-17 21:19:08 -06:00
2016-06-11 12:19:16 +03:00
2016-05-11 00:47:23 +01:00
2016-05-19 19:03:54 +01:00