Changeset 3005


Ignore:
Timestamp:
2006-01-17T16:47:42+01:00 (12 years ago)
Author:
nbd
Message:

fix #216

Location:
branches/whiterussian/openwrt/package/webif/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/webif/files/usr/lib/webif/validate.awk

    r2012 r3005  
    7171} 
    7272 
     73$1 == "wpapsk" { 
     74        valid_type = 1 
     75        if (length(value) > 64) { 
     76                valid = 0 
     77                verr = "String too long" 
     78        } 
     79        if (length(value) < 8) { 
     80                valid = 0 
     81                verr = "String too short" 
     82        } 
     83        if ((length(value) == 64) && (value ~ /[^0-9a-fA-F]/)) { 
     84                valid = 0 
     85                verr = "Invalid hex key" 
     86        } 
     87} 
     88 
    7389valid_type != 1 { valid = 0 } 
    7490 
  • branches/whiterussian/openwrt/package/webif/files/www/cgi-bin/webif/wireless-config.sh

    r2508 r3005  
    114114wep|FORM_key3|WEP key 3||$FORM_key3 
    115115wep|FORM_key4|WEP key 4||$FORM_key4 
    116 string|FORM_wpa_psk|WPA pre-shared key|min=8 max=63 $V_PSK|$FORM_wpa_psk 
     116wpapsk|FORM_wpa_psk|WPA pre-shared key|$V_PSK|$FORM_wpa_psk 
    117117string|FORM_radius_key|RADIUS server key|min=4 max=63 $V_RADIUS|$FORM_radius_key 
    118118string|FORM_ssid|ESSID|required|$FORM_ssid 
Note: See TracChangeset for help on using the changeset viewer.