Skip to content

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

Open
@piegamesde

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementAny requests for improvements or new features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions