diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 21:29:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 21:29:15 +0000 |
commit | 18547c5dd36e69452db72098f444e0eddf38175c (patch) | |
tree | 2eeb549268a2af686c34095a3b213ebe7c3883c0 | |
parent | bcf5313216cf8d44116ff47f8f89d911b719e235 (diff) | |
download | pfsense-18547c5dd36e69452db72098f444e0eddf38175c.zip pfsense-18547c5dd36e69452db72098f444e0eddf38175c.tar.gz |
If item is 12 digits in length then treat the same for hex
-rwxr-xr-x | usr/local/www/interfaces_wlan.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 09ad676..eafff4b 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -86,6 +86,13 @@ function wireless_config_post() { } continue; } + if(strlen($_POST['key' . $i]) == 12) { + /* hex key */ + if(stristr($_POST['key' . $i], "0x") == false) { + $_POST['key' . $i] = "0x" . $_POST['key' . $i]; + } + continue; + } /* 128 bit */ if(strlen($_POST['key' . $i]) == 13) continue; |