aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/items.php4
-rw-r--r--include/nav.php5
2 files changed, 6 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 1fdbc6fc2..f1169aeb4 100644
--- a/include/items.php
+++ b/include/items.php
@@ -636,8 +636,8 @@ function item_store($arr) {
// they came through.
$arr['body'] = str_replace(
- array('&','>','<'),
- array('&' ,'>' ,'<'),
+ array('&', '>', '<', '"'),
+ array('&' , '>' , '<', '&quot'),
$arr['body']
);
diff --git a/include/nav.php b/include/nav.php
index 96acf826d..94a71d227 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -34,7 +34,10 @@
$a->page['nav'] .= '<a id="nav-logout-link" class="nav-link" href="logout">' . t('Logout') . "</a>\r\n";
}
else {
- $a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link" href="login">' . t('Login') . "</a>\r\n";
+ $a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link';
+ if ($a->module == 'login') { $a->page['nav'] .= ' nav-selected'; }
+
+ $a->page['nav'] .= '" href="login">' . t('Login') . "</a>\r\n";
}
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";