Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Contributions to ELOG  Not logged in ELOG logo
Message ID: 35     Entry time: Tue May 24 22:43:38 2011
Author: JacekK 
Author Email: doctor99@poczta.onet.pl 
Category: Script 
Subject: Javascript verification of simple attributes with regexp 
Status: Beta 
Last Revision: Tue May 24 22:46:38 2011 by JacekK 

Hi,

I added possibility for a new verification of required fields in generated Javascript "function chkform()". To do this I added new logbook option "ValidPattern", in which you can set regular expression for an attribute, for example

ValidPattern HexDigits=[0-9a-fA-F]+

If there is a pattern set for required field, then in chkform() function is generated additional verification, if value of the field matches validation regexp.

Changes I made should not decrease performance of elogd. Let me know please if you can add it to regular version.

 

Jacek

Attachment 1: JScriptREVerify.patch  2 kB  | Show | Show all
ELOG V3.1.5-3fb85fa6