Forgot one file..
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/crypto@23740 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/src/crypto_utils.dart b/lib/src/crypto_utils.dart
index 18bb09e..59838a5 100644
--- a/lib/src/crypto_utils.dart
+++ b/lib/src/crypto_utils.dart
@@ -104,8 +104,7 @@
return new String.fromCharCodes(out);
}
- static List<int> base64StringToBytes(String input,
- [bool ignoreInvalidCharacters = true]) {
+ static List<int> base64StringToBytes(String input) {
int len = input.length;
if (len == 0) {
return new List<int>(0);
@@ -118,7 +117,7 @@
int c = _decodeTable[input.codeUnitAt(i)];
if (c < 0) {
extrasLen++;
- if(c == -2 && !ignoreInvalidCharacters) {
+ if(c == -2) {
throw new FormatException('Invalid character: ${input[i]}');
}
}
@@ -129,7 +128,7 @@
must be a multiple of 4. Input: $input''');
}
- // Count pad characters, ignore illegal characters at the end.
+ // Count pad characters.
int padLength = 0;
for (int i = len - 1; i >= 0; i--) {
int currentCodeUnit = input.codeUnitAt(i);