mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-22 07:39:42 +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) {
|
if (url.search(/^otpauth:\/\/[th]otp\/.*?.*/) != -1) {
|
||||||
var ret = {"type": "", "title": "", "secret": "", "counter": ""};
|
var ret = {"type": "", "title": "", "secret": "", "counter": ""};
|
||||||
ret.type = url.slice(10,14).toUpperCase();
|
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 pstr = url.slice(url.indexOf("?")+1, url.length);
|
||||||
var params = pstr.split("&");
|
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
|
* Tue Jul 01 2014 Stefan Brand <sailfish@seiichiro0185.org> 1.0-1
|
||||||
- Added harbour-compatible QR-Reader
|
- Added harbour-compatible QR-Reader
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Name: harbour-sailotp
|
Name: harbour-sailotp
|
||||||
Summary: SailOTP
|
Summary: SailOTP
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Release: 2
|
Release: 1
|
||||||
Group: Security
|
Group: Security
|
||||||
URL: https://github.com/seiichiro0185/sailotp/
|
URL: https://github.com/seiichiro0185/sailotp/
|
||||||
License: "BSD\t"
|
License: "BSD\t"
|
||||||
|
|
Loading…
Reference in a new issue