[pgAdmin][RM5401] Object name does not displayed in search object if object name contains special characters

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin][RM5401] Object name does not displayed in search object if object name contains special characters
Date: 2020-04-20 08:19:04
Message-ID: CAM9w-_k=_GGjKwiS4SPfcyFeJDMKF_nTHegpq+6+rcLX_9gLdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

Attached is the patch to fix the issue in search objects where object name
does not display correctly if it html characters.
Code is changed to escape the HTML chars in Object name and path. Code is
also changed to escape single quotes in the like clause of the search query.

Please review.

--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"

Attachment Content-Type Size
RM5401.patch application/octet-stream 3.6 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2020-04-20 08:31:16 [pgAdmin][RM5415] Query tool context menu on collection nodes not working
Previous Message Nagaraj Raj 2020-04-20 07:35:56 Re: pgAdmin is freezing