mod_oep: photos/album/xxxxx is no longer hex2bin/bin2hex but the album hash and is throwing php warnings when trying to decode

(cherry picked from commit 938fcdd1a6)
This commit is contained in:
zotlabs 2019-03-05 04:07:01 +00:00 committed by Mario
parent 336c716a44
commit a0bffe4a78

View File

@ -456,7 +456,7 @@ class Oep extends \Zotlabs\Web\Controller {
if(preg_match('|//(.*?)/(.*?)/(.*?)/album/|',$url,$matches)) { if(preg_match('|//(.*?)/(.*?)/(.*?)/album/|',$url,$matches)) {
$chn = $matches[3]; $chn = $matches[3];
$res = hex2bin(basename($url)); $res = basename($url);
} }
if(! ($chn && $res)) if(! ($chn && $res))