mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-27 01:50:29 +00:00
updateOriginUrl: add behavior when diff is fragment and query
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
e07fadea76
commit
fc040c749d
2 changed files with 9 additions and 0 deletions
|
@ -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',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue