From: Michael Tremer Date: Sat, 8 Dec 2012 15:03:36 +0000 (+0100) Subject: Add some more extensions to the list of viewable files. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e4fdb40df392550b8d425a1feceb989b7129677;p=pbs.git Add some more extensions to the list of viewable files. --- diff --git a/backend/constants.py b/backend/constants.py index 88ff0bd6..8f0ebc3a 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -21,12 +21,24 @@ CVE_PATTERN = r"(CVE)(\s|\-)(\d{4}\-\d{4})" FILE_EXTENSIONS_VIEWABLE = ( ".c", + ".cc", ".cfg", ".conf", ".config", + ".cpp", ".h", ".nm", ".patch", + ".patch0", + ".patch1", + ".patch2", + ".patch3", + ".patch4", + ".patch5", + ".patch6", + ".patch7", + ".patch8", + ".patch9", ".pl", ".pm", ".py",