def url_is_acceptable(self, url):

        parsed = urlparse(url)
        return (parsed[0] in self.allowed_schemes and '.' in parsed[1]) \
            or (parsed[0] in self.allowed_schemes and '@' in parsed[2]) \
            or (parsed[0] == '' and parsed[2].startswith('/'))
Rolls back to a savepoint. Does nothing if savepoints are not supported.
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/sanitizer.py/XssCleaner.url_is_acceptable--crossover with--dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.savepoint_rollback