liquid_feedback_frontend
annotate app/main/member_image/show.lua @ 11:77d58efe99fd
Version beta7
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
| author | bsw |
|---|---|
| date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) |
| parents | 80c215dbf076 |
| children | 88ac7798b562 |
| rev | line source |
|---|---|
| bsw/jbe@4 | 1 local image_type = param.get("image_type") |
| bsw/jbe@4 | 2 local record = MemberImage:by_pk(param.get_id(), image_type, true) |
| bsw/jbe@4 | 3 |
| bsw/jbe@4 | 4 if record == nil then |
| bsw/jbe@4 | 5 local default_file = config.member_image_default_file[image_type] |
| bsw/jbe@4 | 6 if default_file then |
| bsw/jbe@4 | 7 print('Location: ' .. encode.url{ static = default_file } .. '\n\n') |
| bsw/jbe@4 | 8 else |
| bsw/jbe@4 | 9 print('Location: ' .. encode.url{ static = 'icons/16/lightning.png' } .. '\n\n') |
| bsw/jbe@4 | 10 end |
| bsw/jbe@4 | 11 exit() |
| bsw/jbe@4 | 12 end |
| bsw/jbe@4 | 13 |
| bsw/jbe@4 | 14 print('Content-type: ' .. record.content_type .. '\n') |
| bsw/jbe@4 | 15 |
| bsw/jbe@4 | 16 if record then |
| bsw/jbe@4 | 17 io.stdout:write(record.data) |
| bsw/jbe@4 | 18 else |
| bsw/jbe@4 | 19 end |
| bsw/jbe@4 | 20 |
| bsw/jbe@4 | 21 exit() |