Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Not applying XML escape #444

@cognition9144

Description

@cognition9144

Prerequisites

  • I have searched the Issues list for open and closed issues and believe this is a unique, currently unreported bug.

Describe the bug

A clear and concise description of what the bug is.
When exporting/importing the playlist, Vocal doesn't escape special symbols for XML files. Due to that problem, when importing, the interface will be blank (although from stdout there will be some output for all podcasts).
Then if restart vocal, other podcasts are fine, whereas the one with a problematic URL shows a exclaimer cover. Click it, vocal wil crash.

To Reproduce

Steps to reproduce the behavior:

  1. Add an url with & or other symbols.
  2. Export the playlist.
  3. Import the playlist.
  4. Restart Vocal.
  5. Click on the cover with a problematic URL.

Expected behavior

' is replaced with '
" is replaced with "
& is replaced with &
< is replaced with &lt;
> is replaced with &gt;

Screenshots or screen recordings

Logs

**** parser error : EntityRef: expecting ';'
/****/5bc8e707-4ea8-4969-b6c3-ab6400a58a21&type
                                                                               ^
[INFO 22:46:22.844786] Library.vala:203: Error parsing OPML file.

Platform Information

Please share as many of the following details as possible:

  • Linux distrubution: Manjaro
  • OS version: 19.0.2
  • Desktop environment: GNOME

Please check the applicable option below:

  • I'm using the latest version from git that I've manually compiled
  • I'm using the latest version of the Flatpak, downloaded from Flathub.org
  • I'm using the latest version available from AppCenter
  • I'm using a different version (please note here) : From Arch's official repo.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions