From 18547c5dd36e69452db72098f444e0eddf38175c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 27 Aug 2005 21:29:15 +0000 Subject: If item is 12 digits in length then treat the same for hex --- usr/local/www/interfaces_wlan.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.1