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
|
from flask import abort, make_response, jsonify, escape
|
||||||
|
|
||||||
|
|
||||||
def str_escape(s: str) -> str:
|
def str_escape(s):
|
||||||
if not s:
|
if not s:
|
||||||
return None
|
return None
|
||||||
return str(escape(s))
|
return str(escape(s))
|
||||||
|
|||||||
Reference in New Issue
Block a user