Added special char to some values (#18145)

This commit is contained in:
Charles 2023-03-10 15:05:27 +01:00 committed by GitHub
parent d25ef165b9
commit f87cd7859a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -711,7 +711,7 @@ unsigned char TInfo::calcChecksum(char *etiquette, char *valeur, char * horodate
while(*valeur) {
c = *valeur++ ;
// Add another validity check since checksum may not be sufficient (space authorized in Standard mode)
if ( (c>='A' && c<='Z') || (c>='0' && c<='9') || c==' ' || c=='.' || c=='-' || c=='+') {
if ( (c>='A' && c<='Z') || (c>='0' && c<='9') || c==' ' || c=='.' || c=='-' || c=='+' || c=='/') {
sum += c ;
} else {
return 0;