Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Upgrader + Latest PHPMyAdmin #1139

Merged
merged 12 commits into from
Jan 6, 2024
5 changes: 2 additions & 3 deletions CyberCP/secMiddleware.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 ` $ & ( ) [ ] { } ; : ‘ < >.",
Expand Down
Loading
Loading