diff --git a/qml/lib/urldecoder.js b/qml/lib/urldecoder.js index 212c545..552df7b 100644 --- a/qml/lib/urldecoder.js +++ b/qml/lib/urldecoder.js @@ -6,7 +6,7 @@ function decode(url) { if (url.search(/^otpauth:\/\/[th]otp\/.*?.*/) != -1) { var ret = {"type": "", "title": "", "secret": "", "counter": ""}; ret.type = url.slice(10,14).toUpperCase(); - ret.title = url.slice(15, url.indexOf("?")); + ret.title = decodeURIComponent(url.slice(15, url.indexOf("?"))); var pstr = url.slice(url.indexOf("?")+1, url.length); var params = pstr.split("&"); diff --git a/rpm/harbour-sailotp.changes b/rpm/harbour-sailotp.changes index 67517f0..294f52e 100644 --- a/rpm/harbour-sailotp.changes +++ b/rpm/harbour-sailotp.changes @@ -1,2 +1,5 @@ +* Fri May 22 2015 Stefan Brand 1.1-1 +- Added URL-decoding for OTP-titles when scanning QR-codes + * Tue Jul 01 2014 Stefan Brand 1.0-1 - Added harbour-compatible QR-Reader diff --git a/rpm/harbour-sailotp.yaml b/rpm/harbour-sailotp.yaml index 65a9844..f481a35 100644 --- a/rpm/harbour-sailotp.yaml +++ b/rpm/harbour-sailotp.yaml @@ -1,7 +1,7 @@ Name: harbour-sailotp Summary: SailOTP -Version: 1.0 -Release: 2 +Version: 1.1 +Release: 1 Group: Security URL: https://github.com/seiichiro0185/sailotp/ License: "BSD\t"