Revision 428c4e0a snf-astakos-app/astakos/im/util.py

b/snf-astakos-app/astakos/im/util.py
306 306
    safedomain = settings.BASEURL.replace("https://", "").replace(
307 307
        "http://", "")
308 308
    safe = restrict_next(referer, safedomain)
309
    assert safe
310 309
    # avoid redirect loop
311 310
    loops = referer == request.get_full_path()
312 311
    if referer and safe and not loops:

Also available in: Unified diff