From 187aafe463e2d2b2c86ba69cbbfb20ba90877f5d Mon Sep 17 00:00:00 2001 From: Wouter van Kesteren Date: Fri, 14 Oct 2016 00:38:07 +0200 Subject: [PATCH] Fix url increment Dont increment %20 escapes to %21. --- common/modules/buffer.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index 4e292a106..e6d24f370 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -192,7 +192,8 @@ var Buffer = Module("Buffer", { incrementURL: function incrementURL(count) { let { dactyl } = this.modules; - let matches = this.uri.spec.match(/(.*?)(\d+)(\D*)$/); + let decodedspec = decodeURIComponent(this.uri.spec) + let matches = decodedspec.match(/(.*?)(\d+)(\D*)$/); dactyl.assert(matches); let oldNum = matches[2];