Skip to content

Commit

Permalink
Merge pull request #1139 from master3395/v2.3.5-dev
Browse files Browse the repository at this point in the history
Internal Upgrader + Latest PHPMyAdmin
  • Loading branch information
usmannasir authored Jan 6, 2024
2 parents b9f9438 + 834147b commit 0e59955
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 1,157 deletions.
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

0 comments on commit 0e59955

Please sign in to comment.