Bug 1259040 - Follow-up: Correct typos in logical or. r=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sun, 13 Jan 2019 10:31:04 +0100
changeset 33325 28b72562d11e
parent 33324 4f89930a06e5
child 33326 b87bcf831808
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1259040
Bug 1259040 - Follow-up: Correct typos in logical or. r=me DONTBUILD
mailnews/local/src/nsMsgMaildirStore.cpp
--- a/mailnews/local/src/nsMsgMaildirStore.cpp
+++ b/mailnews/local/src/nsMsgMaildirStore.cpp
@@ -54,17 +54,17 @@ static void percentEncode(nsACString con
   // We know the output will be at least as long as the input.
   out.SetLength(0);
   out.SetCapacity(in.Length());
   for (cur = in.BeginReading(); cur != end; ++cur) {
     const char c = *cur;
     bool whitelisted = (c >= '0' && c <= '9') ||
       (c >= 'A' && c <= 'Z') ||
       (c >= 'a' && c <= 'z') ||
-      c == '-' || c == '+' || c == '.' ||c == '%' || c == '=' | c == '@' | c == '_';
+      c == '-' || c == '+' || c == '.' || c == '%' || c == '=' || c == '@' || c == '_';
     if (whitelisted) {
       out.Append(c);
     } else {
       out.AppendPrintf("%%%02x", (const unsigned char)c);
     }
   }
 }