| 1 |
Revision history for CGI-Application-Plugin-LinkIntegrity |
| 2 |
|
| 3 |
0.06 May 18, 2006 |
| 4 |
- the entry point code added so many months ago had a bug in it: |
| 5 |
When there is a blank query string, CGI.pm adds an empty 'keywords' |
| 6 |
key to the query paremeters. This meant that 'GET' requests |
| 7 |
without parameters would fail. |
| 8 |
|
| 9 |
0.05 October 3, 2005 |
| 10 |
- now install 'invalid_checksum' hook at class load time |
| 11 |
|
| 12 |
0.04 October 3, 2005 |
| 13 |
- made the module actually useful! In order to generate a valid |
| 14 |
link, you need to load the module. However you can't load the |
| 15 |
module if the application was invoked with an invalid URL. |
| 16 |
Catch-22. So now there's an entry point: if the invoking URL |
| 17 |
contained no parameters, then it is considered to be valid. |
| 18 |
|
| 19 |
- changed setup of hooks to happen at config time instead of |
| 20 |
import time. Hopefully this makes it possible to use '@ISA' |
| 21 |
instead of 'use base': |
| 22 |
|
| 23 |
# Typical usage |
| 24 |
use base 'CGI::Application'; |
| 25 |
use CGI::Application::Plugin::LinkIntegrity; |
| 26 |
|
| 27 |
# This also works |
| 28 |
use CGI::Application; |
| 29 |
our @ISA = qw(CGI::Application); |
| 30 |
use CGI::Application::Plugin::LinkIntegrity; |
| 31 |
|
| 32 |
- made CGI version 2.37 or greater a prerequisite (for url_param) |
| 33 |
|
| 34 |
0.03 August 21, 2005 |
| 35 |
- NOTE: This release is not compatible with previous versions. |
| 36 |
- API radically rewritten to make it possible to protect links |
| 37 |
directly from within templates (Thanks to Michael Peter and |
| 38 |
Mark Stosberg for the feedback and ideas) |
| 39 |
- the following methods have changed: |
| 40 |
|
| 41 |
Old Syntax New Syntax |
| 42 |
========== ========== |
| 43 |
->make_link($url, { 'p1' => 'v1'}) ->link($url, 'p1' => 'v1') |
| 44 |
|
| 45 |
->make_self_link($url, ->self_link($url, 'p1' => 'v1') |
| 46 |
keep_path_info => 1, |
| 47 |
params => { 'p1' => 'v1'}) |
| 48 |
|
| 49 |
->make_self_link($url, ->path_link('', 'p1' => 'v1') |
| 50 |
keep_path_info => 0, |
| 51 |
params => { 'p1' => 'v1'}) |
| 52 |
|
| 53 |
->make_self_link($url, ->path_link('/new/path', 'p1' => 'v1') |
| 54 |
path_info => '/new/path' |
| 55 |
params => { 'p1' => 'v1'} |
| 56 |
) |
| 57 |
|
| 58 |
- added documentation illustrating how to call link, make_link, |
| 59 |
etc. directly from templates |
| 60 |
|
| 61 |
0.02 ???? |
| 62 |
- added 'additional_data' feature |
| 63 |
|
| 64 |
0.01 ???? |
| 65 |
- First development version released for comments and feedback |
| 66 |
|