There was an error while loading. Please reload this page.
1 parent b4fbb9c commit 07f881eCopy full SHA for 07f881e
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