这是indexloc提供的服务,不要输入任何密码
Skip to content

Database name is missing in notification message if database name contains special characters #6488

@nikhil-mohite

Description

@nikhil-mohite

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

Database name is missing in notification message if database name contains special characters

To Reproduce

Steps to reproduce the behavior:

  1. Create Database with name <script>alert('Hi')</script>
  2. Open query tool for same database node.
  3. Try to delete it from the context menu using the "Delete" option and click on OK to delete the database.
  4. It shows an error unable to delete the database as other sessions using it, check it is showing double quotes("") instead of the database name.
Screenshot 2023-06-21 at 3 14 48 PM
  1. If we try the same steps with the database name without special characters it is working fine.

Expected behavior

It should show the database name instead of just double quotes ("")

Desktop (please complete the following information):

  • OS: macOS (Ventura 13.3)
  • Version: 7.13
  • Mode: Desktop

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions