Added stricter URL filtering to prevent DOM Based XSS when the tree view is enabled