diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index bbd9dd150..b7b5956bf 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -67,8 +67,10 @@ jobs: do if [ $COUNTER -ge $KEEP_LAST_N_IMAGES ] then - echo "Deleting tag $TAG" - curl -i -X DELETE -u $DOCKER_HUB_USERNAME:$DOCKER_HUB_PASSWORD https://hub.docker.com/v2/repositories/$DOCKER_HUB_REPO/tags/$TAG/ + echo "The following tag should be deleted: $TAG" + # Commenting out the actual delete since dockerhub does not seem to support delete via curl :-( + # echo "Deleting tag $TAG" + # curl -i -X DELETE -u $DOCKER_HUB_USERNAME:$DOCKER_HUB_PASSWORD https://hub.docker.com/v2/repositories/$DOCKER_HUB_REPO/tags/$TAG/ else echo "Keeping tag $TAG" fi diff --git a/UPGRADING.html b/UPGRADING.html index d63d51e88..b928d5f29 100644 --- a/UPGRADING.html +++ b/UPGRADING.html @@ -15,7 +15,7 @@
WebCalendar Version: | -1.9.9 | +1.9.10 |
---|
Important News: A major improvement beginning with Version 1.1 is the addition of an automated installation script. This script will guide you through the installation process and help identify any problem areas that might prevent successful installation or operation of WebCalendar. diff --git a/composer.json b/composer.json index 0c93c38af..bd0811f59 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "k5n/webcalendar", "type": "project", "description": "Multi-user web-based calendar app", - "version": "1.9.9", + "version": "1.9.10", "homepage": "https://www.k5n.us/webcalendar/", "authors": [ { diff --git a/composer.lock b/composer.lock index ef9dea9ff..d7adbc7a6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c4501e167a7d34885c54756f3591dbc6", + "content-hash": "c1feaefa310526e57a89a1f696f398e3", "packages": [ { "name": "ckeditor/ckeditor", diff --git a/includes/config.php b/includes/config.php index f6cfc0708..cd8bc4b26 100644 --- a/includes/config.php +++ b/includes/config.php @@ -161,9 +161,9 @@ function do_config() ]; // When changing PROGRAM VERSION, also change it in install/default_config.php - $PROGRAM_VERSION = 'v1.9.9'; + $PROGRAM_VERSION = 'v1.9.10'; // Update PROGRAM_DATE with official release data - $PROGRAM_DATE = '12 Sep 2023'; + $PROGRAM_DATE = '02 Oct 2023'; $PROGRAM_NAME = 'WebCalendar ' . "$PROGRAM_VERSION ($PROGRAM_DATE)"; $PROGRAM_URL = 'http://k5n.us/wp/webcalendar/'; diff --git a/includes/menu.php b/includes/menu.php index cc7a80149..3048260e0 100644 --- a/includes/menu.php +++ b/includes/menu.php @@ -181,6 +181,9 @@ $logout_url = $login_url . '&'; } $logout_url .= 'action=logout'; + if (empty($CSRF_PROTECTION) || $CSRF_PROTECTION != 'N') { + $logout_url .= '&csrf_form_key=' . getFormKey(); + } // Should we use another application's login/logout pages? if (substr($GLOBALS['user_inc'], 0, 9) == 'user-app-') { global $app_login_page, $app_logout_page; diff --git a/includes/trailer.php b/includes/trailer.php index ac46b9693..cba9a553b 100644 --- a/includes/trailer.php +++ b/includes/trailer.php @@ -230,6 +230,9 @@ $login_url .= '?return_path=' . $login_return_path; $logout_url .= $login_url . '&action=logout'; } + if (empty($CSRF_PROTECTION) || $CSRF_PROTECTION != 'N') { + $logout_url .= '&csrf_form_key=' . getFormKey(); + } // Should we use another application's login/logout pages? if ( substr ( $GLOBALS['user_inc'], 0, 9 ) == 'user-app-' ) { diff --git a/install/default_config.php b/install/default_config.php index cccfbc6ea..07592af8a 100644 --- a/install/default_config.php +++ b/install/default_config.php @@ -153,7 +153,7 @@ 'USER_RSS_ENABLED' => 'N', 'USER_SEES_ONLY_HIS_GROUPS' => 'Y', 'USER_SORT_ORDER' => 'cal_lastname, cal_firstname', - 'WEBCAL_PROGRAM_VERSION' => 'v1.9.9', + 'WEBCAL_PROGRAM_VERSION' => 'v1.9.10', 'WEEK_START' => '0', 'WEEKEND_START' => '6', 'WEEKENDBG' => '#d0d0d0', diff --git a/install/sql/upgrade-db2.sql b/install/sql/upgrade-db2.sql index 5b3aadb9f..da42dbfd8 100644 --- a/install/sql/upgrade-db2.sql +++ b/install/sql/upgrade-db2.sql @@ -301,4 +301,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade-ibase.sql b/install/sql/upgrade-ibase.sql index 2e76d967a..69798dd5e 100644 --- a/install/sql/upgrade-ibase.sql +++ b/install/sql/upgrade-ibase.sql @@ -316,4 +316,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade-mssql.sql b/install/sql/upgrade-mssql.sql index 3fd564890..c5a0d5e12 100644 --- a/install/sql/upgrade-mssql.sql +++ b/install/sql/upgrade-mssql.sql @@ -302,4 +302,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade-mysql.sql b/install/sql/upgrade-mysql.sql index 2950dcdbb..c55bb10a0 100644 --- a/install/sql/upgrade-mysql.sql +++ b/install/sql/upgrade-mysql.sql @@ -271,4 +271,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.6*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade-oracle.sql b/install/sql/upgrade-oracle.sql index 78dd90e66..f4128669e 100644 --- a/install/sql/upgrade-oracle.sql +++ b/install/sql/upgrade-oracle.sql @@ -299,4 +299,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade-postgres.sql b/install/sql/upgrade-postgres.sql index 984db394a..4b8a5f5bb 100644 --- a/install/sql/upgrade-postgres.sql +++ b/install/sql/upgrade-postgres.sql @@ -317,4 +317,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade.sql b/install/sql/upgrade.sql index 47a8f7ff2..9e620564d 100644 --- a/install/sql/upgrade.sql +++ b/install/sql/upgrade.sql @@ -617,4 +617,4 @@ ALTER TABLE webcal_user MODIFY cal_passwd VARCHAR(255); update webcal_entry_categories SET cat_owner = '' WHERE cat_owner IS NULL; ALTER TABLE webcal_entry_categories ADD PRIMARY KEY (cal_id, cat_id, cat_order, cat_owner); /*upgrade_v1.9.7*/ -/*upgrade_v1.9.9*/ +/*upgrade_v1.9.10*/ diff --git a/install/sql/upgrade_matrix.php b/install/sql/upgrade_matrix.php index de110feff..46fe8a509 100644 --- a/install/sql/upgrade_matrix.php +++ b/install/sql/upgrade_matrix.php @@ -1,6 +1,6 @@