]> bicyclesonthemoon.info Git - ott/bsta/blobdiff - frame.1.pl
redirect attachment if already ONGed
[ott/bsta] / frame.1.pl
index c6f87ae9cc9db4dc955cd86680b738104802d33d..b8fb99d9f2b881ea0bc25bfc2dedd8b16c0b259b 100644 (file)
@@ -5,7 +5,7 @@
 #
 # The frame interface
 #
-# Copyright (C) 2016, 2023  Balthasar Szczepański
+# Copyright (C) 2016, 2023, 2024  Balthasar Szczepański
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as
@@ -74,7 +74,7 @@ my $password;
 my $password_ok;
 my $IP;
 my $access;
-my $frame_indirect;
+my $try_onged;
 my $frame_path;
 my $frame_data_path;
 my $frame_file;
@@ -147,7 +147,7 @@ elsif (
        }
 }
 
-$frame_indirect = !(
+$try_onged = (
        (!$access) || (
                ($frame <= $last_frame) &&
                ($ong_state > STATE->{'inactive'})
@@ -173,7 +173,7 @@ else {
        );
 }
 
-unless ($frame_indirect) {
+if ($try_onged) {
        $frame_path = join_path(PATH_SEPARATOR(), WWW_PATH(), $frame_file);
        $r = open($fh, '<' , encode('locale_fs', $frame_path));
        if ($r) {