Sfoglia il codice sorgente

同步更新thinkphp版的解密函数

binsee 10 anni fa
parent
commit
bf85dcf787
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Thinkphp/qywechat.class.php

+ 1 - 1
Thinkphp/qywechat.class.php

@@ -1572,7 +1572,7 @@ class PKCS7Encoder
     {
     {
 
 
         $pad = ord(substr($text, -1));
         $pad = ord(substr($text, -1));
-        if ($pad < 1 || $pad > 31) {
+        if ($pad < 1 || $pad > 32) {
             $pad = 0;
             $pad = 0;
         }
         }
         return substr($text, 0, (strlen($text) - $pad));
         return substr($text, 0, (strlen($text) - $pad));