Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39ab3b9

Browse files
committed
Minor fix for meta refresh
1 parent d7f0da5 commit 39ab3b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
META_CHARSET_REGEX = r'(?si)<head>.*<meta http-equiv="?content-type"?[^>]+charset=(?P<result>[^">]+).*</head>'
249249

250250
# Regular expression used for parsing refresh info from meta html headers
251-
META_REFRESH_REGEX = r'(?si)<head>.*<meta http-equiv="?refresh"?[^>]+content="?[^">]+url=(?P<result>[^">]+).*</head>'
251+
META_REFRESH_REGEX = r'(?si)<head>.*<meta http-equiv="?refresh"?[^>]+content="?[^">]+url=["\']?(?P<result>[^\'">]+).*</head>'
252252

253253
# Regular expression used for parsing empty fields in tested form data
254254
EMPTY_FORM_FIELDS_REGEX = r'(&|\A)(?P<result>[^=]+=(&|\Z))'

0 commit comments

Comments
 (0)