mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-31 18:31:02 +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;
|
break;
|
||||||
case ['fragment']:
|
case ['fragment']:
|
||||||
case ['query']:
|
case ['query']:
|
||||||
|
case ['fragment', 'query']:
|
||||||
// noop
|
// noop
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -801,6 +801,14 @@ class ContentProxyTest extends TestCase
|
||||||
null,
|
null,
|
||||||
'example.org',
|
'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…
Add table
Add a link
Reference in a new issue