[pgAdmin4][patch]: String evaluation issue

Поиск
Список
Период
Сортировка
От Neel Patel
Тема [pgAdmin4][patch]: String evaluation issue
Дата
Msg-id CACCA4P3b2MskMggrE=GiL5_MNhGPfaMr1u1u-XvsYHvNOuF+aA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [pgAdmin4][patch]: String evaluation issue  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
Hi,

Please find attached patch file containing the fix for the below issue.
This issue is reported by Dave during the debugger code review and we have removed the same issue from other files where we used.

Issue :- 

When we use below string to form the error message then it will not work because Jinja will evaluate the string " + err.errormsg + " before it gets evaluated as JS by the browser.

           alertify.error("{{ _('" + err.errormsg + "') }}");


Do review it and let us know for any comments.

Thanks,
Neel Patel

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Ashesh Vashi
Дата:
Сообщение: pgAdmin 4 commit: Adding missing query templates required for the serve
Следующее
От: Dave Page
Дата:
Сообщение: Re: PATCH: graphical explain