mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
change auditor hash generation
This commit is contained in:
parent
f3f398eb31
commit
30906bbb6b
@ -698,12 +698,8 @@ define([
|
||||
hash += '/p';
|
||||
}
|
||||
}
|
||||
var href;
|
||||
if (burnAfterReading) {
|
||||
href = opts.burnAfterReadingUrl;
|
||||
} else {
|
||||
href = hash.startsWith('#') ? (origin + pathname + hash) : (origin + pathname + '#' + hash);
|
||||
}
|
||||
var href = burnAfterReading ? opts.burnAfterReadingUrl
|
||||
: (origin + pathname + '#' + hash);
|
||||
var parsed = Hash.parsePadUrl(href);
|
||||
return origin + parsed.getUrl({embed: embed, present: present, versionHash: versionHash});
|
||||
};
|
||||
|
||||
@ -34,7 +34,7 @@ define([
|
||||
}
|
||||
if (parsed && parsed.auditorKey) {
|
||||
meta.form_auditorKey = parsed.auditorKey;
|
||||
meta.form_auditorHash = hash;
|
||||
meta.form_auditorHash = hash.charAt(0) === '#' ? hash.slice(1) : hash;
|
||||
}
|
||||
|
||||
var formData = Utils.Hash.getFormData(Utils.secret);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user