Skip to content

Commit 7517d0b

Browse files
committed
FIX: ENHEX - underscore char does not have to be encoded
1 parent a8b9ac9 commit 7517d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/n-strings.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static struct digest {
637637
if ( (c >= 'a' && c <= 'z')
638638
|| (c >= 'A' && c <= 'Z')
639639
|| c == '?' || c == '!' || c == '&'
640-
|| c == '*' || c == '=' || c == '~'
640+
|| c == '*' || c == '=' || c == '~' || c == '_'
641641
) break; // no conversion
642642
goto byte_needs_encoding;
643643
case LEX_CLASS_NUMBER:
@@ -687,7 +687,7 @@ static struct digest {
687687
if ( (c >= 'a' && c <= 'z')
688688
|| (c >= 'A' && c <= 'Z')
689689
|| c == '?' || c == '!' || c == '&'
690-
|| c == '*' || c == '=' || c == '~'
690+
|| c == '*' || c == '=' || c == '~' || c == '_'
691691
) break; // no conversion
692692
goto char_needs_encoding;
693693
case LEX_CLASS_NUMBER:

0 commit comments

Comments
 (0)