Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/inet_escape_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct Matcher {
auto input_data = input.GetData();
auto input_size = input.GetSize();
auto num_of_digits = input_size - i; // number of digits after i index
if (num_of_digits > 2 && input_data[i] == '&') { // the beggining of a match
if (num_of_digits > 2 && input_data[i] == '&') { // the beginning of a match
if (input_data[i + 1] == '#') {
if (input_data[i + 2] == 'x' || input_data[i + 2] == 'X') {
if (num_of_digits == 3 || input_data[i + 3] == '&' ||
Expand Down Expand Up @@ -192,9 +192,9 @@ struct Matcher {
}
// special character references
if (0x80 <= num && num <= 0x9f) {
auto invaid_charref = bind_data.special_invalid_charrefs.find(num);
if (invaid_charref != bind_data.special_invalid_charrefs.end()) {
auto ch = invaid_charref->second;
auto invalid_charref = bind_data.special_invalid_charrefs.find(num);
if (invalid_charref != bind_data.special_invalid_charrefs.end()) {
auto ch = invalid_charref->second;
OP::Operation(ch, result);
} else { // non printable control points
if (num == 0x81) {
Expand All @@ -209,7 +209,7 @@ struct Matcher {
OP::Operation("\\x9d", result);
} else {
throw InternalException(
"Tried to decode contol point %d, but it was not handled", num);
"Tried to decode control point %d, but it was not handled", num);
}
}
return;
Expand Down