Homec4science

bibdocfile: better error report for unknown format

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Dec 7 2012, 15:06.

Description

bibdocfile: better error report for unknown format

  • When an unknown format for a bibdocfile is requested an exception was registered (and an email was sent to the admins), even when no referer was specified in the HTTP headers, thus cluttering error reports in case of malicious users playing with the system. This commit improves the check for unknown formats earlier avoiding the exception to be registered, when no referer is set.

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:22f4e36755d7: bibdocfile: better error report for unknown format (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Dec 20 2012, 10:35