mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
add same host test and get rid of the www subdomain
This commit is contained in:
@@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
4
vendor/composer/installed.php
vendored
4
vendor/composer/installed.php
vendored
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user