Replace curly quotes on sign message
This commit is contained in:
parent
14c325f155
commit
d7ba3d6408
|
@ -624,6 +624,9 @@ class StatsViewSet(viewsets.ViewSet, List):
|
||||||
try:
|
try:
|
||||||
sign = request.data['sign'][:500]
|
sign = request.data['sign'][:500]
|
||||||
|
|
||||||
|
sign = sign.replace('‘', '\'').replace('’', '\'')
|
||||||
|
sign = sign.replace('“', '"').replace('”', '"')
|
||||||
|
|
||||||
if sign.startswith('https://') or sign.startswith('http://'):
|
if sign.startswith('https://') or sign.startswith('http://'):
|
||||||
cache.set('link', sign)
|
cache.set('link', sign)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user