mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-25 16:49:41 +00:00
Added URL-Decoding for OTP Titles
This commit is contained in:
parent
b039fa737a
commit
a448deda07
3 changed files with 6 additions and 3 deletions
|
@ -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("&");
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue