]> lifelog.hopto.org Git - LifeLog.git/commitdiff
fix: using split for IMG_W_H
authorMetabox <redacted>
Sat, 27 Apr 2019 23:12:47 +0000 (09:12 +1000)
committerMetabox <redacted>
Sat, 27 Apr 2019 23:12:47 +0000 (09:12 +1000)
htdocs/cgi-bin/main.cgi

index 3ed0bd5da0885c742b931f2ac87ad2acb0599a7d..72a973301ea33e256ad552f8a68544aaaf740d5a 100755 (executable)
@@ -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;
 }