Skip to content

Commit

Permalink
correct base64 check
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Oct 30, 2023
1 parent 3286bdb commit e1b4feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/Base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace data

bool IsBase64 (char ch)
{
return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || ch == '-' || ch == '~';
return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') || ch == '-' || ch == '~';
}

/*
Expand Down

0 comments on commit e1b4feb

Please sign in to comment.