Преглед изворни кода

Merge pull request #1 from fanchou/master

Update qywechat.class.php
binsee пре 10 година
родитељ
комит
1487c23826
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      qywechat.class.php

+ 1 - 1
qywechat.class.php

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