diff --git a/server.py b/server.py index 783179a..8f10927 100644 --- a/server.py +++ b/server.py @@ -91,8 +91,7 @@ class Anonymous_Github: if file.type == 'dir': return "" if file.size > 1000000: - return Markup("The file %s is too big please download it: Download %s" % ( - file.name, file.url, file.name)) + return Markup("The file %s is too big to be anonymized (beyond 1MB, Github limit)" % (file.name)) if ".md" in file.name: return Markup("
%s") % Markup.escape(file.decoded_content), repository_configuration)
if ".txt" in file.name or ".log" in file.name or ".xml" in file.name or ".json" in file.name or ".java" in file.name or ".py" in file.name:
return remove_terms(Markup("" + file.decoded_content + ""), repository_configuration) - return Markup("Download %s" % (file.url, file.name)) + return Markup("%s has an unknown extension, we are unable to anonymize it (known extensions md/txt/json/java/...)" % (file.name)) @application.route('/' + application.killurl, methods=['POST']) def seriouslykill():