Skip to content

Sanitize newline while c&p into input fields #1502

@xf-

Description

@xf-

Expected Behavior

Remove newline

Current Behavior

Output in listing include newlines.

Possible Solution

Clean all \n \r and maybe other control chars to avoid broken UI.

Steps to Reproduce (for bugs)

  1. c&p text like a URL form a Mail into keepass including a line break
  2. Save entry
  3. List view is "broken"

Context

Avoid a broken UI

Debug Info

KeePassXC - Version 2.2.4
Revision: 4723f66

Libraries:

  • Qt 5.10.1
  • libgcrypt 1.8.2

Operating system: Arch Linux
CPU architecture: x86_64
Kernel: linux 4.15.3-2-ARCH

Enabled extensions:

  • KeePassHTTP
  • Auto-Type
  • YubiKey

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions