- fixed obvious mistake in IDN script code (luckily it hasn't been in a submi...
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Mar 2005 03:46:44 +0000 (03:46 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Mar 2005 03:46:44 +0000 (03:46 +0000)
        * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
        not "script", which is the script number, not the 32-bit-word index.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8803 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/Misc.subproj/WebNSURLExtras.m

index 5a056608fab11e759cbe9258181d51539557b1e6..187f20309a0a0d1b27293fdb5596439803e3252e 100644 (file)
@@ -1,3 +1,10 @@
+2005-03-06  Darin Adler  <darin@apple.com>
+
+        - fixed obvious mistake in IDN script code (luckily it hasn't been in a submission yet!)
+
+        * Misc.subproj/WebNSURLExtras.m: (readIDNScriptWhiteListFile): Use "index" to index into the array,
+        not "script", which is the script number, not the 32-bit-word index.
+
 2005-03-05  Kevin Decker  <kdecker@apple.com>
 
         Reviewed by Darin.
index 6f5da84b25d87e7e47c8537e6a204471f46f3881..bfe83269213498cecf1bc923d6ca76230c3a1266 100644 (file)
@@ -813,7 +813,7 @@ static BOOL readIDNScriptWhiteListFile(NSString *filename)
                 if (IDNScriptWhiteList[index] & mask) {
                     NSLog(@"%@: script code %s is listed twice\n", filename, word);
                 }
-                IDNScriptWhiteList[script] |= mask;
+                IDNScriptWhiteList[index] |= mask;
             }
         }
     }