[Commotion-admin] [luci-commotion] Luci field validation (#156)

gradyoti notifications at github.com
Wed Jan 22 22:07:57 UTC 2014



BASIC CONFIGURATION:

Hostname
0, < 63, /^[%a]$/ or /^[a-zA-Z]+[a-zA-Z0-9\-]*[a-zA-Z0-9]+$/

Admin Password
TBD

Mesh SSID
> 1, < 31, any chars 

Mesh Password
> 8, < 63, printable ASCII chars(http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters)

Access Point SSID
> 1, < 31, any chars

Access Point Password
> 8, < 63, printable ASCII chars(http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters)


APPLICATIONS:

Name

> 1, < 250, any chars

Description
> 1, < 243, any chars

Address
> 7, < 251, must be a valid IPv4 address, IPv6 address, or begin with http:// or https://
(NOTE: cgi bombs out with an empty url starting with "http://")

Hop Count
> 1, < 3, integers >= 0 and < 256

App Icon
> 1, < 250, ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=

Port
> 1, < 5, integers > 0, < 65536


APPLICATION SETTINGS

Categories
> 1, < 250, any

Time before expiring
> 1, < 16, integers > 0

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-commotion/issues/156
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140122/26220b6c/attachment.html>


More information about the Commotion-admin mailing list