mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed Unescape hex decoding
This commit is contained in:
parent
38d47fa254
commit
fd4ea4e650
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ namespace System
|
|||
if ((hexC >= '0') && (hexC <= '9'))
|
||||
num = num*0x10 + (uint8)(hexC - '0');
|
||||
else if ((hexC >= 'A') && (hexC <= 'F'))
|
||||
num = num*0x10 + (uint8)(c - 'A') + 10;
|
||||
num = num*0x10 + (uint8)(hexC - 'A') + 10;
|
||||
else if ((hexC >= 'a') && (hexC <= 'f'))
|
||||
num = num*0x10 + (uint8)(hexC - 'a') + 10;
|
||||
else return .Err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue