From 28a4f27fe8e36f6a633adeb8732b0065eae3c241 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Fri, 25 Oct 2024 18:16:14 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20a=20bug=20with=20parsing=20=E2=80=9Calw?= =?UTF-8?q?ays=5Flink=5Fgancio=5Fpost=E2=80=9D=20from=20the=20config=20fil?= =?UTF-8?q?e;=20bumped=20version=20to=200.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gancioff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gancioff b/gancioff index 99c4eec..38eab23 100755 --- a/gancioff +++ b/gancioff @@ -18,7 +18,7 @@ $SNAME='GancioFF'; $ENAME=strtolower($SNAME); -$SVERS='0.2'; +$SVERS='0.3'; require __DIR__.'/lib/gettlds.php'; require __DIR__.'/lib/mastodon-postLength.php'; @@ -261,7 +261,7 @@ if (!is_null($conf['max_post_length'])) { $conf['max_post_length']+=0; echo "Info: got «{$conf['max_post_length']}» as «max_post_length» from configuration file.\n"; } -if (!is_null($conf['always_link_gancio_post']) && preg_match('#^(true|false)$#',$conf['always_link_gancio_post'])!==1) { +if (!is_bool($conf['always_link_gancio_post']) && preg_match('#^(true|false)$#',$conf['always_link_gancio_post'])!==1) { dieYoung("Error: configuration file: «always_link_gancio_post» must be «true» or «false».\n",1); } else { ($conf['always_link_gancio_post']=='true') ? $conf['always_link_gancio_post']=true : $conf['always_link_gancio_post']=false;