From fdeab5b2d1d42ec2395104e81d2a6e498759185b Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 28 Apr 2026 13:10:25 +0200 Subject: [PATCH] add same host test and get rid of the www subdomain --- tests/unit/Lib/UrlTest.php | 14 ++++++++------ vendor/composer/installed.php | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/unit/Lib/UrlTest.php b/tests/unit/Lib/UrlTest.php index 5c8a79665..55268598f 100644 --- a/tests/unit/Lib/UrlTest.php +++ b/tests/unit/Lib/UrlTest.php @@ -36,17 +36,19 @@ class UrlTest extends UnitTestCase { public static function zid_test_provider() : array { return [ // URL without params - ['https://www.example.net/channel/test', 'visitor@example.org', 'https://www.example.net/channel/test?zid=visitor@example.org'], + ['https://example.net/channel/test', 'visitor@example.org', 'https://example.net/channel/test?zid=visitor@example.org'], // URL with args - ['https://www.example.net/channel/test?t=test', 'visitor@example.org', 'https://www.example.net/channel/test?t=test&zid=visitor@example.org'], + ['https://example.net/channel/test?t=test', 'visitor@example.org', 'https://example.net/channel/test?t=test&zid=visitor@example.org'], // URL with fragment - ['https://www.example.net/channel/test#fragment', 'visitor@example.org', 'https://www.example.net/channel/test?zid=visitor@example.org#fragment'], + ['https://example.net/channel/test#fragment', 'visitor@example.org', 'https://example.net/channel/test?zid=visitor@example.org#fragment'], // URL with args and fragment - ['https://www.example.net/channel/test?t=test#fragment', 'visitor@example.org', 'https://www.example.net/channel/test?t=test&zid=visitor@example.org#fragment'], + ['https://example.net/channel/test?t=test#fragment', 'visitor@example.org', 'https://example.net/channel/test?t=test&zid=visitor@example.org#fragment'], // URL with zid - ['https://www.example.net/channel/test?zid=visitor@example.org', 'visitor@example.org', 'https://www.example.net/channel/test?zid=visitor@example.org'], + ['https://example.net/channel/test?zid=visitor@example.org', 'visitor@example.org', 'https://example.net/channel/test?zid=visitor@example.org'], // No addr provided - ['https://www.example.net/channel/test', '', 'https://www.example.net/channel/test?zid=visitor@example.org'], + ['https://example.net/channel/test', '', 'https://example.net/channel/test?zid=visitor@example.org'], + // Same host, no addr + ['https://example.org/channel/test', '', 'https://example.org/channel/test'], ]; } } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 2d508c9b3..9362df46e 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'zotlabs/hubzilla', 'pretty_version' => 'dev-11.2RC', 'version' => 'dev-11.2RC', - 'reference' => '782765e377459b48e370710a6890fd9edd7a77a3', + 'reference' => 'fa7c8e93f1466624ec49170a553d23eee857c70a', 'type' => 'application', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -544,7 +544,7 @@ 'zotlabs/hubzilla' => array( 'pretty_version' => 'dev-11.2RC', 'version' => 'dev-11.2RC', - 'reference' => '782765e377459b48e370710a6890fd9edd7a77a3', + 'reference' => 'fa7c8e93f1466624ec49170a553d23eee857c70a', 'type' => 'application', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),