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;
|
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',
|
||||||
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user