Skip to content
Snippets Groups Projects
Commit f0502317 authored by ayeaye's avatar ayeaye
Browse files

Strip leading/trailing slashes

parent dee22723
No related merge requests found
......@@ -11,6 +11,7 @@ app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_host=1)
@app.route('/<path:path>')
def index(path):
base_url='https://' + (os.environ.get("GITLAB_HOSTNAME") or 'gitlab.com')
path=path.strip('/')
if path:
parts = path.split("/")
group = False
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment