Skip to content

Commit

Permalink
优化XSS过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
zmister committed Sep 7, 2021
1 parent d2eda66 commit 123c7e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app_admin/views.py
Expand Up @@ -20,6 +20,7 @@
from app_api.permissions_app import SuperUserPermission # 自定义权限
from app_admin.decorators import superuser_only,open_register
from app_doc.models import *
from app_doc.views import jsonXssFilter
from app_admin.models import *
from app_admin.utils import *
from loguru import logger
Expand Down Expand Up @@ -685,7 +686,7 @@ def admin_doc(request):
"code": 0,
"msg": "ok",
"count": doc_list.count(),
"data": table_data
"data": jsonXssFilter(table_data)
}
return JsonResponse(resp_data)

Expand Down
2 changes: 1 addition & 1 deletion app_doc/views.py
Expand Up @@ -1451,7 +1451,7 @@ def manage_doc(request):
"code": 0,
"msg": "ok",
"count": doc_list.count(),
"data": table_data
"data": jsonXssFilter(table_data)
}
return JsonResponse(resp_data)

Expand Down

0 comments on commit 123c7e3

Please sign in to comment.