aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-17 23:49:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-17 23:49:26 +0000
commitc72cfb90425264f51c1b47bd3441f5a1d0181d49 (patch)
treeb877a3bc3da136a0bef3275d26d251d38d0fd323
parent7c9b26cbab0adfb0c5bbfeb0bbacbaae743be437 (diff)
downloadpfsense-packages-c72cfb90425264f51c1b47bd3441f5a1d0181d49.tar.gz
pfsense-packages-c72cfb90425264f51c1b47bd3441f5a1d0181d49.tar.bz2
pfsense-packages-c72cfb90425264f51c1b47bd3441f5a1d0181d49.zip
Fix snort rules page.
See: http://forum.pfsense.org/index.php/topic,8386.0/topicseen.html
-rw-r--r--packages/snort/snort_rules.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/snort/snort_rules.php b/packages/snort/snort_rules.php
index acad85f8..f1b29f83 100644
--- a/packages/snort/snort_rules.php
+++ b/packages/snort/snort_rules.php
@@ -273,11 +273,16 @@ include("head.inc");
<!--
function go()
{
- box = document.forms.selectbox;
+ var agt=navigator.userAgent.toLowerCase();
+ if (agt.indexOf("msie") != -1) {
+ box = document.forms.selectbox;
+ } else {
+ box = document.forms[1].selectbox;
+ }
destination = box.options[box.selectedIndex].value;
- if (destination) location.href = destination;
+ if (destination)
+ location.href = destination;
}
-
// -->
</script>