8.3.1 (fixes #107)

This commit is contained in:
Tim Speckhals 2019-01-04 21:17:38 +01:00
parent ddd42d3865
commit c6f9659f7a
No known key found for this signature in database
GPG Key ID: A62ADB92F7ADEEB6
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ if(platform=="moz")
if("value"in details.responseHeaders[i]&&["content-security-policy","x-content-security-policy"].indexOf(details.responseHeaders[i].name.toLowerCase())>-1)
{
csp=true
let _policies=details.responseHeaders[i].value.split(";"),policies={}
let _policies=details.responseHeaders[i].value.replace(";,",";").split(";"),policies={}
for(let j in _policies)
{
let policy=_policies[j].trim(),name=policy.split(" ")[0]
@ -32,7 +32,9 @@ if(platform=="moz")
policies["script-src"].push("'unsafe-eval'")
}
else
{
policies["script-src"]=["*","blob:","data:","'unsafe-inline'","'unsafe-eval'"]
}
let value=""
for(let name in policies)
{

View File

@ -11,7 +11,7 @@
"name": "Universal Bypass",
"description": "__MSG_appDesc__",
"homepage_url": "https://universal-bypass.org/",
"version": "8.3",
"version": "8.3.1",
"author": "Tim \"timmyRS\" Speckhals",
"incognito": "split",
"options_ui": {