mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
Merge pull request #1408 from drakkein/master
Strip tracking URL params
This commit is contained in:
@@ -74,7 +74,9 @@ module.exports = function(state, emit) {
|
||||
const password = el.value;
|
||||
if (password.length > 0) {
|
||||
document.getElementById('password-btn').disabled = true;
|
||||
state.fileInfo.url = window.location.href;
|
||||
// Strip any url parameters between fileId and secretKey
|
||||
const fileInfoUrl = window.location.href.replace(/\?.+#/, '#');
|
||||
state.fileInfo.url = fileInfoUrl;
|
||||
state.fileInfo.password = password;
|
||||
emit('getMetadata');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user