[PATCH] Fix CSRF verification in /admin/mergeorg/ and /admin/purge/

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема [PATCH] Fix CSRF verification in /admin/mergeorg/ and /admin/purge/
Дата
Msg-id CABRT9RAzDp0Y1B7M7VLNLGnFzsdb=MbFOR_QqNbdFPgMpJTqGA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Fix CSRF verification in /admin/mergeorg/ and /admin/purge/
Re: [PATCH] Fix CSRF verification in /admin/mergeorg/ and /admin/purge/
Список pgsql-www
It's clear now why CSRF didn't work on these pages: the csrf_token
templatetag requires rendering the template with a RequestContext.

I went through all code using render_to_response() without
RequestContext/NavContext and made sure that they don't process POST
data. I skimmed through the grep last time, but apparently I wasn't
very attentive.

I also permitted POST requests to /search/ again. These aren't sent by
the site itself, but it was allowed before, maybe for a reason.

api_varnish_purge still needs the @ssl_required fix -- I will submit that later.

Regards,
Marti

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [GENERAL] Error registering at postgresql.org
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: [PATCH] Fix CSRF verification in /admin/mergeorg/ and /admin/purge/