1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-05-18 08:30:54 +00:00

Added URL-Decoding for OTP Titles

This commit is contained in:
seiichiro 2015-05-22 18:53:29 +02:00
parent b039fa737a
commit a448deda07
3 changed files with 6 additions and 3 deletions

View file

@ -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("&");

View file

@ -1,2 +1,5 @@
* Fri May 22 2015 Stefan Brand <sailfish@seiichiro0185.org> 1.1-1
- Added URL-decoding for OTP-titles when scanning QR-codes
* Tue Jul 01 2014 Stefan Brand <sailfish@seiichiro0185.org> 1.0-1
- Added harbour-compatible QR-Reader

View file

@ -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"