Fix URL errors when configuring extensions in the presence of SITE_ROOT

Review Request #4892 — Created Nov. 4, 2013 and submitted — Latest diff uploaded

Information

Djblets
release-0.7.x

Reviewers

Fix URL errors when configuring extensions in the presence of SITE_ROOT

The extension framework used str.lstrip() to try to strip off the SITE_ROOT
from the admin URL root, but the problem with that is that lstrip takes in a
set of characters, not a string. If that set of characters included "a" and "d"
(for example, if SITE_ROOT is "/reviewboard/"), it would remove those
characters from the beginning of "admin/...".