Skip to content

Commit

Permalink
Added possible https connection in preg_match
Browse files Browse the repository at this point in the history
  • Loading branch information
witt committed Oct 23, 2020
1 parent 35d2e5f commit 94fa6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Lib/Zdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function getSuccessor($zdbId){

$request = $this->setRequest($url);

preg_match('/\<rdau:P60306 rdf:resource="http:\/\/ld.zdb-services.de\/resource\/(.*)"\/\>/', $request, $matches, PREG_OFFSET_CAPTURE);
preg_match('/\<rdau:P60306 rdf:resource="https?:\/\/ld.zdb-services.de\/resource\/(.*)"\/\>/', $request, $matches, PREG_OFFSET_CAPTURE);

if(!empty($matches[1][0])){
$this->successor[]['zdbid'] = $matches[1][0];
Expand Down

0 comments on commit 94fa6c9

Please sign in to comment.