Skip to content

Commit 4d39206

Browse files
authored
Merge commit from fork
Replace `mg.request_info.request_uri` with the variable `scriptname`
2 parents da80339 + 844f16e commit 4d39206

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

error403.lp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
mg.include('scripts/lua/header.lp','r')
1111
?>
1212
</head>
13-
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>">
13+
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(scriptname)?>">
1414
<div class="box login-box">
1515
<section style="padding: 15px;">
1616
<h2 class="error-headline text-danger">403</h2>
1717
<div class="error-content">
1818
<h3><i class="fa fa-times-circle text-danger"></i> Oops! Access denied.</h3>
1919
<p>
20-
You don't have permission to access <code><?=mg.request_info.request_uri?></code> on this server.<br>
20+
You don't have permission to access this URL.<br>
2121
Did you mean to go to <a href="<?=pihole.webhome()?>">your Pi-hole's dashboard</a> instead?
2222
</p>
2323
</div>

error404.lp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
mg.include('scripts/lua/header.lp','r')
1111
?>
1212
</head>
13-
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>">
13+
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(scriptname)?>">
1414
<div class="box login-box">
1515
<section style="padding: 15px;">
1616
<h2 class="error-headline text-yellow">404</h2>

login.lp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
mg.include('scripts/lua/header.lp','r')
1111
?>
1212
</head>
13-
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(mg.request_info.request_uri)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
13+
<body class="hold-transition layout-boxed login-page page-<?=pihole.format_path(scriptname)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
1414
<div class="box login-box" id="login-box">
1515
<section style="padding: 15px;">
1616
<div class="login-logo">

scripts/lua/header_authenticated.lp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mg.include('header.lp','r')
2424
<script src="<?=pihole.fileversion('vendor/waitMe-js/modernized-waitme-min.js')?>"></script>
2525
<script src="<?=pihole.fileversion('scripts/js/logout.js')?>"></script>
2626
</head>
27-
<body class="<?=theme.name?> hold-transition sidebar-mini <? if pihole.boxedlayout() then ?>layout-boxed<? end ?> logged-in page-<?=pihole.format_path(mg.request_info.request_uri)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
27+
<body class="<?=theme.name?> hold-transition sidebar-mini <? if pihole.boxedlayout() then ?>layout-boxed<? end ?> logged-in page-<?=pihole.format_path(scriptname)?>" data-apiurl="<?=pihole.api_url()?>" data-webhome="<?=webhome?>">
2828
<noscript>
2929
<!-- JS Warning -->
3030
<div>

0 commit comments

Comments
 (0)