src: style tweaks

This commit is contained in:
Franco Fichtner 2023-01-31 13:09:28 +01:00
parent 6b61295721
commit fdcd17cd57
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ function display_login_form($Login_Error)
$themename = htmlspecialchars(get_current_theme());
$product = product::getInstance();
setcookie("cookie_test", bin2hex(random_bytes(16)), time() + 3600, '/', '', $config['system']['webgui']['protocol'] == "https", true);
setcookie("cookie_test", bin2hex(random_bytes(16)), time() + 3600, '/', '', $config['system']['webgui']['protocol'] == 'https', true);
$have_cookies = isset($_COOKIE["cookie_test"]);
?><!doctype html>
<html lang="en" class="no-js">

View File

@ -3548,7 +3548,7 @@ function guess_interface_from_ip($ipaddress)
return $best_if;
}
$ret = shell_safe("/sbin/route -n get %s | /usr/bin/awk '/interface/ { print \$2; };'", $ipaddress);
$ret = shell_safe('/sbin/route -n get %s | /usr/bin/awk \'/interface/ { print $2; };\'', $ipaddress);
if (empty($ret)) {
return false;
}