[fix] url-decode handle both '+' and '%20'
This commit is contained in:
@@ -298,6 +298,17 @@ def url_encode(base):
|
|||||||
|
|
||||||
return quote(base)
|
return quote(base)
|
||||||
|
|
||||||
|
@shuffle_filters.register
|
||||||
|
def url_decode(base):
|
||||||
|
"""url-decode a string"""
|
||||||
|
try:
|
||||||
|
from urllib import unquote_plus
|
||||||
|
except ImportError:
|
||||||
|
from urllib.parse import unquote_plus
|
||||||
|
|
||||||
|
return unquote_plus(base)
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
###
|
###
|
||||||
###
|
###
|
||||||
|
|||||||
Reference in New Issue
Block a user