Gavin Panella wrote: > Review: Needs Fixing code > Hi Michael, > > Nice feature :) A few tiny comments, but also a possible security hole > later on, so Needs Fixing. Hi Gavin, thanks for the review. I think I've addressed your comments -- diff attached -- so please have another look. >> === modified file 'lib/lp/code/browser/codeimport.py' >> --- lib/lp/code/browser/codeimport.py 2010-01-20 03:19:44 +0000 >> +++ lib/lp/code/browser/codeimport.py 2010-03-05 13:53:19 +0000 >> @@ -67,7 +67,7 @@ >> text = u'Code Import System' >> >> >> -class ReviewStatusDropdownWidget(LaunchpadDropdownWidget): >> +class DropdownWidgetWithAny(LaunchpadDropdownWidget): >> """A >> + >> >> >> >> @@ -38,6 +44,12 @@ >> Created >> >> >> + Type >> + >> + >> + Location >> + >> + >> Status >> >> >> @@ -60,6 +72,14 @@ >> some date >> >> >> + > > Is that meant to be a structure? That smells like an opportunity for > script injection. Hm, not really a vulnerability as we completely control the rcs type enum, but also pointless. structure removed. >> + some type >> + >> + >> + > > Again, perhaps not a structure? Ditto. > Also, are there any tests for this? I beefed up the tests in the page test a bit -- see what you think. >> + some details >> + >> + >> >> status >> >> > Thanks again for the review. Cheers, mwh