mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
miscellaneous fixes
This commit is contained in:
@@ -40,4 +40,4 @@ def render(params: dict, allow_html: bool=True, use_cdn: bool=True) -> str:
|
||||
params['what_happened'] = html.escape(params.get('what_happened', ''))
|
||||
params['what_can_i_do'] = html.escape(params.get('what_can_i_do', ''))
|
||||
|
||||
return template.render(params=params, resources_use_cdn=use_cdn)
|
||||
return default_template.render(params=params, resources_use_cdn=use_cdn)
|
||||
|
||||
@@ -40,7 +40,6 @@ def get_page_params(name: str) -> dict:
|
||||
def index(name: str):
|
||||
name = os.path.basename(name) # keep only the base name
|
||||
lower_name = name.lower()
|
||||
print(lower_name, name)
|
||||
if name != lower_name:
|
||||
return redirect(lower_name)
|
||||
else:
|
||||
|
||||
@@ -16,5 +16,5 @@
|
||||
},
|
||||
"error_source": "cloudflare",
|
||||
"what_happened": "<p>There is a catastrophic failure.</p>",
|
||||
"what_can_i_do": "<p>Please try again in a few years.</p>",
|
||||
"what_can_i_do": "<p>Please try again in a few years.</p>"
|
||||
}
|
||||
@@ -14,5 +14,5 @@
|
||||
},
|
||||
"error_source": "cloudflare",
|
||||
"what_happened": "<p>There is an internal server error on Cloudflare\"s network.</p>",
|
||||
"what_can_i_do": "<p>Please try again in a few minutes.</p>",
|
||||
"what_can_i_do": "<p>Please try again in a few minutes.</p>"
|
||||
}
|
||||
Reference in New Issue
Block a user