Merge lp:~stevenk/launchpad/ppa-packages-deletion-grammar into lp:launchpad
Proposed by
Steve Kowalik
on 2012-01-30
| Status: | Merged |
|---|---|
| Approved by: | Steve Kowalik on 2012-01-30 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14734 |
| Proposed branch: | lp:~stevenk/launchpad/ppa-packages-deletion-grammar |
| Merge into: | lp:launchpad |
| Diff against target: |
126 lines (+21/-23) 3 files modified
lib/lp/soyuz/browser/archive.py (+9/-14) lib/lp/soyuz/stories/ppa/xx-delete-packages.txt (+11/-8) lib/lp/soyuz/stories/soyuz/xx-person-packages.txt (+1/-1) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/ppa-packages-deletion-grammar |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2012-01-30 | Approve on 2012-01-30 |
|
Review via email:
|
|||
Commit Message
[r=wgrant][bug=923604] Use better grammar and kill two XSSes in the notification when deleting packages from a PPA.
Description of the Change
At least *try* for better grammar in the deletion notification when deleting packages from a PPA.
As an added bonus, fix two XSSes since we weren't escaping untrusted data.
To post a comment you must log in.

33 + notification = '\n'.join( [msg.escapedtex t for msg in messages]) response. addNotification (structured( notification) )
34 + self.request.
I'd prefer to see the structured() in the previous line, as that's where the .escapedtext which makes calling structured() safe is. Calling structured() with a variable as the first arg is going to lead to mistakes.