Skip to content

Commit

Permalink
Foxhound: revert URLHelper changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbrbr committed Oct 6, 2023
1 parent d9d7578 commit 340d549
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions netwerk/base/nsURLHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ void SerializeString(const nsCString& aInput, nsAString& aValue) {
const unsigned char* p = (const unsigned char*)aInput.get();
const unsigned char* end = p + aInput.Length();

unsigned int i = 0;
while (p != end) {
// ' ' to '+'
if (*p == 0x20) {
Expand All @@ -1143,9 +1142,7 @@ void SerializeString(const nsCString& aInput, nsAString& aValue) {
aValue.AppendPrintf("%%%.2X", *p);
}

aInput.taint().set(i, aValue.taint().atRef(i));
++p;
++i;
}
}

Expand Down

0 comments on commit 340d549

Please sign in to comment.