forked from rDrama/rDrama
fdsfsd
parent
b04db8bfce
commit
82461284ea
|
@ -124,8 +124,8 @@ def teardown_request(error):
|
||||||
def after_request(response):
|
def after_request(response):
|
||||||
|
|
||||||
response.headers.add("Strict-Transport-Security", "max-age=31536000")
|
response.headers.add("Strict-Transport-Security", "max-age=31536000")
|
||||||
response.headers.add("Referrer-Policy", "same-origin")
|
|
||||||
response.headers.add("X-Frame-Options", "deny")
|
response.headers.add("X-Frame-Options", "deny")
|
||||||
|
response.headers.add("Content-Security-Policy", "script-src 'self';")
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1070,7 +1070,7 @@ def submit_post(v):
|
||||||
if "rama" in request.host or "pcm" in request.host:
|
if "rama" in request.host or "pcm" in request.host:
|
||||||
if v.id == CARP_ID:
|
if v.id == CARP_ID:
|
||||||
if random.random() < 0.02: body = "i love you carp"
|
if random.random() < 0.02: body = "i love you carp"
|
||||||
else: body = "![](/assets/images/emojis/fuckoffcarp.webp)"
|
else: body = ":#marseyfuckoffcarp:"
|
||||||
elif v.id == LAWLZ_ID:
|
elif v.id == LAWLZ_ID:
|
||||||
if random.random() < 0.5: body = "wow, this lawlzpost sucks!"
|
if random.random() < 0.5: body = "wow, this lawlzpost sucks!"
|
||||||
else: body = "wow, a good lawlzpost for once!"
|
else: body = "wow, a good lawlzpost for once!"
|
||||||
|
|
Loading…
Reference in New Issue