[Devel] [ openser-Bugs-1556965 ] wrong regexp in openserctl

SourceForge.net noreply at sourceforge.net
Tue Sep 12 11:25:00 CEST 2006


Bugs item #1556965, was opened at 2006-09-12 11:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1556965&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Klaus Darilion (klaus_darilion)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong regexp in openserctl

Initial Comment:
a hyphen "-" is AFAIK also a valid character for a
username. Thus, the regexp's should be corrected.

[a-zA-Z0-9_\.\-] ???

regards
klaus


# check the parameter if it is a valid address of
record (user at domain)
  154 check_aor() {
  155 	echo "$1" | $EGREP "^[a-zA-Z0-9_\.]+ at .*\..*"
>/dev/null
  156 	if [ $? -ne 0 ] ; then
  157 		echo "error: invalid AoR: $1" > /dev/stderr
  158 		exit 1
  159 	fi
  160 }
  161 
  162 # check the parameter if it is a valid address of
record (user at domain)
  163 is_aor() {
  164 	echo "$1" | $EGREP "^[a-zA-Z0-9_\.]+ at .*\..*"
>/dev/null
  165 	if [ $? -ne 0 ] ; then
....
....
....
....



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1556965&group_id=139143



More information about the Devel mailing list