new experimental feature: shenanigans
- will allow server operates to intentionally enable bugs/exploits for fun shenanigans
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
// Allow URL access outside our trusted minisrv
|
||||
if (wtvshared.shenanigans.checkShenanigan(wtvshared.shenanigans.shenanigans.ENABLE_TRICKS_URLACCESS)) {
|
||||
// Allow URL access outside our trusted minisrv
|
||||
if (request_headers.query.url) var url = request_headers.query.url;
|
||||
else var url = "client:showalert?message=Please%20provide%20a%20%3Furl%3D%20with%20the%20url%20you%20would%20like%20to%20access.&buttonlabel1=Okay&buttonacction1=client:donothing"
|
||||
|
||||
if (request_headers.query.url) var url = request_headers.query.url;
|
||||
else var url = "client:showalert?message=Please%20provide%20a%20%3Furl%3D%20with%20the%20url%20you%20would%20like%20to%20access.&buttonlabel1=Okay&buttonacction1=client:donothing"
|
||||
|
||||
headers = `300 OK
|
||||
wtv-visit: ${url}
|
||||
Location: ${url}
|
||||
Content-type: text/html`
|
||||
|
||||
|
||||
data = '';
|
||||
headers = `300 OK
|
||||
wtv-visit: ${url}
|
||||
Location: ${url}
|
||||
Content-type: text/html`
|
||||
} else {
|
||||
var err = wtvshared.doErrorPage(403, "Access Denied");
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
}
|
||||
Reference in New Issue
Block a user