Bugs item #1556965, was opened at 2006-09-12 12:25
Message generated for change (Comment added) made by bogdan_iancu
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: Accepted
Priority: 5
Submitted By: Klaus Darilion (klaus_darilion)
>Assigned to: Bogdan (bogdan_iancu)
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 ([EMAIL PROTECTED])
  154 check_aor() {
  155   echo "$1" | $EGREP "[EMAIL PROTECTED]"
>/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 ([EMAIL PROTECTED])
  163 is_aor() {
  164   echo "$1" | $EGREP "[EMAIL PROTECTED]"
>/dev/null
  165   if [ $? -ne 0 ] ; then
....
....
....
....



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

>Comment By: Bogdan (bogdan_iancu)
Date: 2006-09-14 10:52

Message:
Logged In: YES 
user_id=1275325

Klaus,

according to the RFC, in the username name part you may have:

user  =  1*( unreserved / escaped / user-unreserved )
user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"

unreserved  =  alphanum / mark
mark        =  "-" / "_" / "." / "!" / "~" / "*" / "'"
             / "(" / ")"

which means you may find (unescaped) the following non
alphanumerical char: & = + $ , ; ? / - _ . ! ~ * ' ( )

right?

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

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

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to