LinkAce icon indicating copy to clipboard operation
LinkAce copied to clipboard

Import: check the content before importing, maybe ask for confirmation

Open piegamesde opened this issue 1 year ago • 1 comments

Bug Description

I just misclicked while trying to import bookmarks, and thus imported a standard HTML file. It took a long time, and obviously gave very weird results, and also took a lot of time afterwards.

How to reproduce

  1. Save some website to html file
  2. Import it
  3. Enjoy

Expected behavior

To avoid this, one could maybe check that the file to be imported a) is actually valid HTML and b) starts with <!DOCTYPE NETSCAPE-Bookmark-file-1>. Moreover, showing the number of links or maybe even a preview of the raw URLs + then asking for confirmation beforehand would be really helpful.

Logs

No response

Screenshots

No response

LinkAce version

v1.10.5

Setup Method

PHP

Operating System

Linux (Ubuntu, CentOS,...)

Client details

Arch Linux, Chromium

piegamesde avatar Nov 24 '22 16:11 piegamesde

Related

  • #287

Kovah avatar Nov 24 '22 17:11 Kovah