mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Don't forget to decode location.hash before it can be used for a comparison.
fixes #282
This commit is contained in:
@@ -203,11 +203,13 @@ History.prototype = {
|
||||
},
|
||||
|
||||
check: function() {
|
||||
if (this.serialized == location.hash && this.force === undefined) {
|
||||
var decodedhash = decodeURIComponent(location.hash);
|
||||
|
||||
if (this.serialized == decodedhash && this.force === undefined) {
|
||||
return;
|
||||
}
|
||||
delete(this.force);
|
||||
this.from_string(decodeURIComponent(location.hash));
|
||||
this.from_string(decodedhash);
|
||||
if (!this.serialized) {
|
||||
location.hash = this.options.deflocation;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user