Changes between Initial Version and Version 1 of Ticket #151
- Timestamp:
- Sep 26, 2007, 8:22:53 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #151 – Description
initial v1 1 Right now "for foo.bar, blub['blah'] in something" is undefined in genshi (it does nothing, especially no error) and "for foo['a in b'] in bar"breaks with a syntax error although it's valid python.1 Right now `for foo.bar, blub['blah'] in something` is undefined in genshi (it does nothing, especially no error) and `for foo['a in b'] in bar` breaks with a syntax error although it's valid python. 2 2 3 Because of my work on the sandboxed branch it's important that iterations do not modify existing objects because they could be persistent, thus shared among renderings. A quickfix would be changing the " in " split to a regex like this: "r([A-Za-z_][A-Za-z0-9_]*(\s*,\s*[A-Za-z_][A-Za-z0-9_]*)*)\s+in" 3 Because of my work on the sandboxed branch it's important that iterations do not modify existing objects because they could be persistent, thus shared among renderings. A quickfix would be changing the ` in ` split to a regex like this: 4 5 {{{ 6 r([A-Za-z_][A-Za-z0-9_]*(\s*,\s*[A-Za-z_][A-Za-z0-9_]*)*)\s+in 7 }}} 4 8 5 9 That would then automatically close the security problem of the sandbox branch too.
