aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/redirect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/redirect.js b/js/redirect.js
index 81e459f..eff4d2c 100644
--- a/js/redirect.js
+++ b/js/redirect.js
@@ -272,7 +272,7 @@ Redirect.prototype = {
return null;
}
var resultUrl = this.redirectUrl;
- for (var i = 1; i < matches.length; i++) {
+ for (var i = matches.length - 1; i > 0; i--) {
var repl = matches[i] || '';
if (this.processMatches == 'urlDecode') {
repl = unescape(repl);