From 1e171a72a03bfff06888c275b4fc88286ae20c8f Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 21 Feb 2022 10:18:39 +0000 Subject: bump version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d1459d6be..6b6a56b6d 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.1.3'); +define('STD_VERSION', '7.1.4'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 3 Mar 2022 16:52:04 +0000 Subject: fix duplicate ids in login form and move login/register buttons into the hamburger menu on small screens --- boot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 6b6a56b6d..5fa314eee 100644 --- a/boot.php +++ b/boot.php @@ -1687,7 +1687,7 @@ function fix_system_urls($oldurl, $newurl) { * @param boolean $login_page (optional) default true * @return string Parsed HTML code. */ -function login($register = false, $form_id = 'main-login', $hiddens = false, $login_page = true) { +function login($register = false, $form_id = 'main_login', $hiddens = false, $login_page = true) { $o = ''; $reg = null; @@ -1747,9 +1747,9 @@ function login($register = false, $form_id = 'main-login', $hiddens = false, $lo '$login' => t('Login'), '$remote_login' => t('Remote Authentication'), '$form_id' => $form_id, - '$lname' => ['username', $lname_label], - '$lpassword' => ['password', t('Password')], - '$remember_me' => [(($login_page) ? 'remember' : 'remember_me'), t('Remember me'), '', '', [t('No'), t('Yes')]], + '$lname' => [$form_id . '_username', $lname_label], + '$lpassword' => [$form_id . '_password', t('Password')], + '$remember_me' => [$form_id . '_remember', t('Remember me'), '', '', [t('No'), t('Yes')]], '$hiddens' => $hiddens, '$register' => $reg, '$lostpass' => t('Forgot your password?'), -- cgit v1.2.3 From 27058e629722fa84e564e2b34c9c09d619130642 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 4 Mar 2022 09:51:21 +0000 Subject: bump version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 5fa314eee..8c47bbb89 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.1.4'); +define('STD_VERSION', '7.1.5'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From 6294be371aa4b489212b76bc306420bf89f80588 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 4 Mar 2022 16:12:44 +0000 Subject: bump version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 8c47bbb89..15f096d87 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.1.5'); +define('STD_VERSION', '7.1.6'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From f4af532c5a8f37f69035616e2ae7908bf5b77a62 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 13 Mar 2022 19:37:45 +0100 Subject: Trim trailing & from query_string. When trying to fetch an image file from the Cloud module, the default nginx config will add a trailing & if there's no args specified. Example: https://example.com/cloud/username/some_image.png This will be rewritten to: https://example.com/index.php?q=/cloud/username/some_image.png& This in turn will cause the Cloud module to try to redirect back to the original because it does not match the query_string (in which the ampersand has been converted to a question mark). And this will repeat until the browser get's tired of it. --- boot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 5fa314eee..42b162506 100644 --- a/boot.php +++ b/boot.php @@ -915,9 +915,14 @@ class App { if ((x($_SERVER, 'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'], 0, 2) === "q=") { self::$query_string = str_replace(['<', '>'], ['<', '>'], substr($_SERVER['QUERY_STRING'], 2)); + // removing trailing / - maybe a nginx problem if (substr(self::$query_string, 0, 1) == "/") self::$query_string = substr(self::$query_string, 1); + + // trim trailing '&' if no extra args are present + self::$query_string = rtrim(self::$query_string, '&'); + // change the first & to ? self::$query_string = preg_replace('/&/', '?', self::$query_string, 1); } -- cgit v1.2.3 From 61522ed31de1850df8786d7e01c6493572fdf69b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Mar 2022 20:16:33 +0000 Subject: strings --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index ff73c0146..8dcbb3943 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.1.6'); +define('STD_VERSION', '7.2RC'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From c42a0fa9b6365c9b2c5a369a72f3193a1912d58e Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Mar 2022 20:20:44 +0000 Subject: bump dev version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 8dcbb3943..ee1cd7990 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.2RC'); +define('STD_VERSION', '7.3'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From 943ecff6232f6fcdcff3a950478140b151c28cf7 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 25 Mar 2022 09:27:39 +0000 Subject: fix version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index ee1cd7990..8dcbb3943 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.3'); +define('STD_VERSION', '7.2RC'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3 From 9c5d2ee5630dd7033904039dcd1e92db8821b644 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 29 Mar 2022 11:41:33 +0200 Subject: version 7.2 --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 8dcbb3943..9bedaa7a3 100644 --- a/boot.php +++ b/boot.php @@ -60,7 +60,7 @@ require_once('include/bbcode.php'); require_once('include/items.php'); define('PLATFORM_NAME', 'hubzilla'); -define('STD_VERSION', '7.2RC'); +define('STD_VERSION', '7.2'); define('ZOT_REVISION', '6.0'); define('DB_UPDATE_VERSION', 1252); -- cgit v1.2.3