code must be padded to 5 digits
This commit is contained in:
@@ -338,7 +338,8 @@ class NetBiblio extends WebService
|
||||
$books = array_map(function($b) {
|
||||
if(strlen($this->login) > 0 && isset($b['files']['zip']['uri'])) {
|
||||
$key = 'babf2cfbe2633c3082f8cfffdb3d9008b4b3b300';
|
||||
$hash = sha1($this->client.$this->login.$key.$b['code'].date('Ymd'));
|
||||
$code = sprintf("%05u", $b['code']);
|
||||
$hash = sha1($this->client.$this->login.$key.$code.date('Ymd'));
|
||||
|
||||
$b['files']['zip']['uri'] = str_replace(array(
|
||||
'{client}',
|
||||
|
||||
Reference in New Issue
Block a user