forked from wallabag/wallabag
updateOriginUrl: add behavior when diff is fragment and query
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
@ -344,6 +344,7 @@ class ContentProxy
|
||||
break;
|
||||
case ['fragment']:
|
||||
case ['query']:
|
||||
case ['fragment', 'query']:
|
||||
// noop
|
||||
break;
|
||||
default:
|
||||
|
||||
@ -801,6 +801,14 @@ class ContentProxyTest extends TestCase
|
||||
null,
|
||||
'example.org',
|
||||
],
|
||||
'fragment and query string in fetched content' => [
|
||||
'https://example.org/hello',
|
||||
null,
|
||||
'https://example.org/hello?foo#world',
|
||||
'https://example.org/hello',
|
||||
null,
|
||||
'example.org',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user