Fix missing URI when giving bad verb

This commit is contained in:
Sebastian Meyer 2017-10-19 09:51:33 +02:00
parent b6b91c9bf7
commit 449ba05bb5
1 changed files with 1 additions and 1 deletions

View File

@ -38,12 +38,12 @@ class OAI2Server {
private $token_valid = 86400; private $token_valid = 86400;
public function __construct($uri, $args, $identifyResponse, $callbacks, $config) { public function __construct($uri, $args, $identifyResponse, $callbacks, $config) {
$this->uri = $uri;
$verbs = array('Identify', 'ListMetadataFormats', 'ListSets', 'ListIdentifiers', 'ListRecords', 'GetRecord'); $verbs = array('Identify', 'ListMetadataFormats', 'ListSets', 'ListIdentifiers', 'ListRecords', 'GetRecord');
if (empty($args['verb']) || !in_array($args['verb'], $verbs)) { if (empty($args['verb']) || !in_array($args['verb'], $verbs)) {
$this->errors[] = new OAI2Exception('badVerb'); $this->errors[] = new OAI2Exception('badVerb');
return; return;
} }
$this->uri = $uri;
$this->verb = $args['verb']; $this->verb = $args['verb'];
unset($args['verb']); unset($args['verb']);
$this->args = $args; $this->args = $args;