Skip to content

Commit

Permalink
fixed: encoded returnUrls are not decoded
Browse files Browse the repository at this point in the history
  • Loading branch information
ivermac authored and MartijnR committed Oct 23, 2015
1 parent 33dc5fa commit a33b4f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http:https://semver.org/).

Unreleased
[1.20.1] - 2015-10-23
---------------------
##### Fixed
- External data loading failing.
- Encoded return URLs were not decoded.

[1.20.0] - 2015-10-22
---------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "enketo-express",
"description": "A simplified version of Enketo Smart Paper that requires a constant connection to the server.",
"homepage": "",
"version": "1.20.0",
"version": "1.20.1",
"main": "./app.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion public/js/src/module/controller-webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function _submitRecord() {
msg += '<br/>' + t( 'alert.submissionsuccess.redirectmsg' );
gui.alert( msg, t( 'alert.submissionsuccess.heading' ), level );
setTimeout( function() {
location.href = settings.returnUrl;
location.href = decodeURIComponent( settings.returnUrl );
}, 1500 );
} else {
msg = ( msg.length > 0 ) ? msg : t( 'alert.submissionsuccess.msg' );
Expand Down

0 comments on commit a33b4f1

Please sign in to comment.