#2504 Only redirect back to HTTP_REFERER if it points to kojiweb
Merged by tkopecek. Opened by alexi.
alexi/koji fix_2503  into  master

Download 2504.patch

The HTTP_REFERER is used to send the user back to the same page where they were before they logged in or out. If the HTTP_REFERER does not point to this same server, it's no longer useful and may end up being harmful (as demonstrated by #2503). In that case, HTTP_REFERER should not be used and we should default to redirecting to index.

Fixes https://pagure.io/koji/issue/2503.

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

:thumbsup:

Metadata Update from @tkopecek:
- Pull-request untagged with: testing-ready
- Pull-request tagged with: no_qe

Commit a09cacc8 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata