update applications/common/utils/validate.py.
Signed-off-by: 我叫以赏 <422880152@qq.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
from flask import abort, make_response, jsonify, escape
|
||||
|
||||
|
||||
def str_escape(s: str) -> str:
|
||||
def str_escape(s):
|
||||
if not s:
|
||||
return None
|
||||
return str(escape(s))
|
||||
|
||||
Reference in New Issue
Block a user