upyun / php-sdk

UPYUN SDK for PHPer
MIT License
175 stars 86 forks source link

修复SIGN生成错误问题 #13

Closed HuanMeng0 closed 8 years ago

HuanMeng0 commented 8 years ago

文档:http://docs.upyun.com/api/rest_api/ “将 PASSWORD md5 之后(我们暂且将其记作 PASSWORD_MD5)”

此处SDK没有在生成sign的function MD5密码

$sign = "{$method}&{$uri}&{$date}&{$length}&{$this->_password}";

=>

$md5password = md5($this->_password); $sign = "{$method}&{$uri}&{$date}&{$length}&{$md5password}";

yejingx commented 8 years ago

https://github.com/upyun/php-sdk/blob/master/upyun.class.php#L102 这里已经 md5 过了。