Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fbb9c commit 07f881eCopy full SHA for 07f881e
1 file changed
lib/core/settings.py
@@ -254,7 +254,7 @@
254
)
255
256
# Regular expression used for parsing charset info from meta html headers
257
-META_CHARSET_REGEX = r'(?si)<head>.*<meta http-equiv="?content-type"?[^>]+charset=(?P<result>[^">]+).*</head>'
+META_CHARSET_REGEX = r'(?si)<head>.*<meta[^>]+charset="?(?P<result>[^"> ]+).*</head>'
258
259
# Regular expression used for parsing refresh info from meta html headers
260
META_REFRESH_REGEX = r'(?si)<head>.*<meta http-equiv="?refresh"?[^>]+content="?[^">]+url=["\']?(?P<result>[^\'">]+).*</head>'
0 commit comments