Skip to content

Commit 99a63de

Browse files
committed
Fix: remove {{PAGENAME}} variants from error page
With this, you could escape the wikitext and insert your own text. Validation on the Page name would fail, but as the error page would render it as text, it would be shown to the user. This is unwanted, and as such, we now no longer print it.
1 parent 9bda36d commit 99a63de

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

templates/Error.mediawiki

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,25 @@
55
<link rel="icon" href="/static/favicon.ico" type="image/icon" />
66
<link rel="stylesheet" href="/static/css/base.css" type="text/css" />
77
<link rel="stylesheet" href="/static/css/truewiki.css" type="text/css" />
8-
<title>OpenTTD | {{SUBPAGENAME}}</title>
8+
<title>OpenTTD | Error</title>
99
</head>
1010
<body>
1111
<header>
1212
<div id="pagename">
13-
{{SUBPAGENAME}}
13+
Error
1414
</div>
1515
<div id="openttd-logo">
1616
<div id="openttd-logo-text"><a href="/en/"><img src="/static/img/layout/openttd-logo.png" alt="OpenTTD" /></a></div>
1717
</div>
18-
{{#if: {{{user_settings_url}}}|
19-
<div id="review-access">
20-
<a href="{{{user_settings_url}}}">Review access</a>
21-
</div>
22-
}}
2318
</header>
2419
<nav>
2520
<ul id="navigation-bar">
2621
{{breadcrumbs}}
2722
</ul>
2823
<ul id="navigation-bar" class="right">
29-
{{#if: {{{display_name|}}}|
30-
<li>
31-
<a href="/user/logout?location={{urlencode:{{FULLPAGENAME}}}}">Logout ({{{display_name}}})</a>
32-
</li>
33-
|
34-
<li>
35-
<a href="/user/login?location={{urlencode:{{FULLPAGENAME}}}}">Login</a>
36-
</li>
37-
}}
3824
</ul>
3925
</nav>
4026
<main>
41-
<h2>Error</h2>
4227
{{content}}
4328
</main>
4429
<footer>

0 commit comments

Comments
 (0)