Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
The API permits path traversal characters like '../' to be passed down to the template finder. Detect these requests and cause them to fail with a 500 response code.