diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 17:07:48 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 17:07:48 -0500 |
commit | ce437697cdd7e85c6e604f3bec821305600f7e39 (patch) | |
tree | fffbbe188c7a0650da511b26bb9a9454f8526a51 /src/usr/local/www | |
parent | 4b72f68fd9fa2c33d34efafc23f31a374f1a6a5a (diff) | |
download | pfsense-ce437697cdd7e85c6e604f3bec821305600f7e39.zip pfsense-ce437697cdd7e85c6e604f3bec821305600f7e39.tar.gz |
logout via POST
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/head.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index d9464d5..a908a12 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -207,7 +207,7 @@ function output_menu($arrayitem, $target = null, $section = "") { if ($item[0] == '-DIVIDER-') { $output .= ' <li class="divider"></li>'; } else { - $output .= "<li>". sprintf("<a %s>%s</a>", $attr, $item[0]) . "</li>\n"; + $output .= "<li>". sprintf("<a %s %s>%s</a>", $attr, ($item[1] == "/index.php?logout") ? "usepost":"",$item[0]) . "</li>\n"; } } } @@ -505,7 +505,7 @@ if (are_notices_pending()) { endif; ?> <li class="dropdown"> - <a href="/index.php?logout"> + <a href="/index.php?logout" usepost> <i class="fa fa-sign-out" title="<?=gettext("Logout") . " (" . $_SESSION['Username'] . "@" . htmlspecialchars($system_url) . ")"?>"></i> </a> </li> @@ -524,7 +524,7 @@ if (are_notices_pending()) { unset($notitle); } else { if (isset($pglinks)) { - print(genhtmltitle($pgtitle, $pglinks)); + print(genhtmltitle($pgtitle, $pglinks)); } else { print(genhtmltitle($pgtitle)); } |