mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix remaining dhcp undefined array key warnings
This commit is contained in:
parent
26c64d42e6
commit
3898b82287
@ -338,9 +338,9 @@ function CSRFValidate()
|
|||||||
{
|
{
|
||||||
if(isset($_POST['csrf_token'])) {
|
if(isset($_POST['csrf_token'])) {
|
||||||
$post_token = $_POST['csrf_token'];
|
$post_token = $_POST['csrf_token'];
|
||||||
$header_token = $_SERVER['HTTP_X_CSRF_TOKEN'];
|
$header_token = $_SERVER['HTTP_X_CSRF_TOKEN'] ?? null;
|
||||||
|
|
||||||
if (empty($post_token) && empty($header_token)) {
|
if (empty($post_token) && is_null($header_token)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$request_token = $post_token;
|
$request_token = $post_token;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="hidden" name="no-resolv" value="0">
|
<input type="hidden" name="no-resolv" value="0">
|
||||||
<div class="form-check form-switch">
|
<div class="form-check form-switch">
|
||||||
<input class="form-check-input" id="no-resolv" type="checkbox" name="no-resolv" value="1" <?php echo $conf['no-resolv'] ? ' checked="checked"' : "" ?> aria-describedby="no-resolv-description">
|
<input class="form-check-input" id="no-resolv" type="checkbox" name="no-resolv" value="1" <?php echo ($conf['no-resolv'] ?? false) ? ' checked="checked"' : '' ?> aria-describedby="no-resolv-description">
|
||||||
<label class="form-check-label" for="no-resolv"><?php echo _("Only ever query DNS servers configured below") ?></label>
|
<label class="form-check-label" for="no-resolv"><?php echo _("Only ever query DNS servers configured below") ?></label>
|
||||||
</div>
|
</div>
|
||||||
<p id="no-resolv-description">
|
<p id="no-resolv-description">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user