9
0
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:
Anthony Donlon
2025-11-21 09:30:51 +08:00
parent 91b1513f04
commit f7491f0b51
4 changed files with 3 additions and 4 deletions

View File

@@ -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)

View File

@@ -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:

View File

@@ -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>"
}

View File

@@ -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>"
}