K 10
svn:author
V 6
iulius
K 8
svn:date
V 27
2011-08-20T20:08:29.275965Z
K 7
svn:log
V 1112
strictly check the syntax of a token

* Check that the last argument to "ctlinnd addhist"
is either '' or a valid token;

* Use @000000000000000000000000000000000000@ when the token
is empty ('') for "ctlinnd addhist", or badly formatted for
any other function calling TextToToken();

* Fix the result of the hexadecimal conversion when a lowercase
character is used.  Transform it to an uppercase character.

* Reject invalid tokens containing '@' or lowercase characters.
(They were previously wrongly accepted.)


Previously:

% ctlinnd addhist '<pouet>' 1312575175 1312575175 1312575175 ''   
Ok
% grephistory -e '<pouet>'
@95A9ADC6403A29596359BECC38B651C17020@


% ctlinnd addhist '<pouet2>' 1312575175 1312575175 1312575175 '@aaaaaaaaaaaaaaaaaaaaa@'
Ok
% grephistory -e '<pouet2>'
@CACACACACACACACACACAA9BA95191402003F@


% ctlinnd addhist '<pouet3>' 1312575175 1312575175 1312575175 '@a'
Ok
% grephistory -e '<pouet3>'
@CAA95191C66E8A89FC1B8B495EFE9EE9301E@

Memory was not properly initialized.

Now, the first command uses @000000000000000000000000000000000000@
and the others are rejected, as invalid.

END
