Browse Source

[php] fixed handling of `complement` arg in Base64.urlDecode

Aleksandr Kuzmenko 4 years ago
parent
commit
6b59ee3656
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/_std/haxe/crypto/Base64.hx

+ 1 - 1
std/php/_std/haxe/crypto/Base64.hx

@@ -61,7 +61,7 @@ class Base64 {
 	}
 
 	public static inline function urlDecode(str:String, complement = false):Bytes {
-		if (!complement) {
+		if (complement) {
 			switch (strlen(str) % 3) {
 				case 1:
 					str += "==";