diff --git a/CyberCP/secMiddleware.py b/CyberCP/secMiddleware.py index 8aa39b79e..9845142af 100755 --- a/CyberCP/secMiddleware.py +++ b/CyberCP/secMiddleware.py @@ -1,12 +1,11 @@ # coding=utf-8 from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging -import json from django.shortcuts import HttpResponse, render +import json import re from loginSystem.models import Administrator class secMiddleware: - HIGH = 0 LOW = 1 @@ -107,7 +106,7 @@ def __call__(self, request): ")") > -1 \ or value.find("'") > -1 or value.find("[") > -1 or value.find("]") > -1 or value.find( "{") > -1 or value.find("}") > -1 \ - or value.find(":") > -1 or value.find("<") > -1 or value.find(">") > -1: + or value.find(":") > -1 or value.find("<") >-1 or value.find(">") > -1: logging.writeToFile(request.body) final_dic = { 'error_message': "Data supplied is not accepted, following characters are not allowed in the input ` $ & ( ) [ ] { } ; : ‘ < >.", diff --git a/baseTemplate/templates/baseTemplate/index.html.bak b/baseTemplate/templates/baseTemplate/index.html.bak deleted file mode 100644 index b84d941e8..000000000 --- a/baseTemplate/templates/baseTemplate/index.html.bak +++ /dev/null @@ -1,1102 +0,0 @@ -{% load i18n %} -{% get_current_language as LANGUAGE_CODE %} - - -
- - - - - - -{% trans "Note: Latest commit does not match, please upgrade CyberPanel." %}
+{% trans "Note: Latest commit does not match, please upgrade CyberPanel." %}