From: Metabox Date: Sat, 27 Apr 2019 23:12:47 +0000 (+1000) Subject: fix: using split for IMG_W_H X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=84a61037b029ed023f8d98ed4a7f98c8124c8e7d;p=LifeLog.git fix: using split for IMG_W_H --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 3ed0bd5..72a9733 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -84,12 +84,12 @@ my $toggle =""; if($rs_keys||$rs_cat_idx||$stmD){$toggle=1;}; $session->expire($SESSN_EXPR); #tag related framed sizing. -my @arrwh = $IMG_W_H = ~m((\S+)\s*x\$\s*(\S+))gi; +my @arrwh = split /x/,$IMG_W_H; if(@arrwh==2){ $imgw = $arrwh[0]; $imgh = $arrwh[1]; } -else{ +else{#defaults $imgw = 210; $imgh = 120; }