Re: CSRF template tag patch done

2009-04-09 Thread Luke Plant
On Wednesday 01 April 2009 00:10:01 Jacob Kaplan-Moss wrote: > An even bigger problem would be for users of third-party reusable > apps: my personal blog is a mere 645 lines of code, but there's > over 10,000 lines of third-party apps I'm building on top of. If I > want to upgrade to 1.1 and keep

Re: CSRF template tag patch done

2009-04-08 Thread Luke Plant
I wrote: > Completely harmless side effect: you get > double insertion of the CSRF token in the contrib apps (this works > fine, it isn't even invalid HTML). In fact, we can even remove this side effect, and the performance hit of using the CsrfResponseMiddleware where it is not needed, by usin

Re: CSRF template tag patch done

2009-04-04 Thread Luke Plant
Hi Jacob, Just got back from being away, would have replied earlier otherwise... > It's simply far too draconian: if I forget to do all steps needed > to upgrade, all my contrib apps stop working. And then as soon as I > *do* those steps, all *my* apps that use POST stop working. I just > can't

Re: CSRF template tag patch done

2009-03-31 Thread Jacob Kaplan-Moss
Hi Luke -- I'm sorry it took me so long to review this patch, but I wanted to make sure I knew what I was talking about first. What you've done here is admirable, and I agree that the goal of out-of-the-box CSRF protection is important, but ultimately I can't get behind committing this. It's si

Re: CSRF template tag patch done

2009-03-24 Thread Luke Plant
On Monday 23 March 2009 19:21:00 Luke Plant wrote: > Hi all, > > The patch has been added to: > > http://code.djangoproject.com/ticket/9977 I've bashed on this a lot more, and discovered (and fixed) several issues (particularly to do with what happens when sessions are first created). I've a

CSRF template tag patch done

2009-03-23 Thread Luke Plant
Hi all, The patch has been added to: http://code.djangoproject.com/ticket/9977 It includes tests, docs etc - I think it is complete. Other notes are below (some of this would need to be prominently noted in the release notes). I don't know if this is too late for the beta. Since I guess