diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-09-20 12:25:49 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-09-20 12:25:49 +0000 |
commit | c86de4aff493ebccf8fe8110cc02b4103a242199 (patch) | |
tree | 353f0a90149de13f086e9a2274153eab9465aaa8 /lib | |
parent | 03e704a0f5f162123003a2cc3f125904c1c3fc53 (diff) |
- Removed redirects for old revision URLs (the code wasn't very secure...)
- Fixed bug when using unicode in the AJAX vn/producers/release search box
- Added (english only) note to tpl/main
- Updated ChangeLog
git-svn-id: svn://vndb.org/vndb@108 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 6 | ||||
-rw-r--r-- | lib/VNDB.pm | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 652e0afd..664b1217 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -7,7 +7,11 @@ TODO: + Add a link for the hidden 'h' option at /hist + Rewrite the revision diff code, it's horrible... -1.22 - ? +1.23 - ? + - Removed redirects for old revision URLs (the code wasn't very secure...) + - Fixed bug when using unicode in the AJAX vn/producers/release search box + +1.22 - 2008-08-29 (r106) - Inverted vote graph - Relation graph image maps are now stored in the DB - Properly fixed the command synchronisation issues with Multi diff --git a/lib/VNDB.pm b/lib/VNDB.pm index 810644a2..94edf82e 100644 --- a/lib/VNDB.pm +++ b/lib/VNDB.pm @@ -143,11 +143,6 @@ my %OLDuris = ( 'v+' => { votes => sub { shift->ResRedirect('/v'.(shift).'/stats', 'perm') }, hist=>{rss => sub { shift->ResRedirect('/v'.(shift).'/hist/rss.xml', 'perm') } }, - '/' => sub { - my $r=$_[0]->FormCheck({name=>'rev',required=>0,default=>0,template=>'int'})->{rev}; - my $i=$_[0]->DBGetHist(cid => [$r])->[0]; - $i && $i->{rev} ? $_[0]->ResRedirect('/'.((qw|v r p|)[$i->{type}]).$_[1].'.'.$i->{rev}, 'perm') : $_[0]->ResNotFound; - }, }, u => { '*' => { @@ -173,7 +168,6 @@ my %OLDuris = ( }, hist=>{rss => sub { shift->ResRedirect('/hist/rss.xml', 'perm') } }, ); -$OLDuris{'r+'}{'/'} = $OLDuris{'p+'}{'/'} = $OLDuris{'v+'}{'/'}; |