summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-09-20 12:25:49 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-09-20 12:25:49 +0000
commitc86de4aff493ebccf8fe8110cc02b4103a242199 (patch)
tree353f0a90149de13f086e9a2274153eab9465aaa8
parent03e704a0f5f162123003a2cc3f125904c1c3fc53 (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
-rw-r--r--data/tpl/main2
-rw-r--r--lib/ChangeLog6
-rw-r--r--lib/VNDB.pm6
-rw-r--r--static/files/dyna.js6
4 files changed, 9 insertions, 11 deletions
diff --git a/data/tpl/main b/data/tpl/main
index 762fdb58..a9c4a69d 100644
--- a/data/tpl/main
+++ b/data/tpl/main
@@ -146,7 +146,7 @@
<p>
vndb v[[: $VNDB::VERSION ]]- |
<a href="/d7">about us</a> |
- <a href="mailto:contact@vndb.org">contact@vndb.org</a> |
+ <a href="mailto:contact@vndb.org">contact@vndb.org</a> (english only) |
designed by <a href="http://www.freecsstemplates.org/">free css templates</a>.
</p>
</div>
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+'}{'/'};
diff --git a/static/files/dyna.js b/static/files/dyna.js
index f698cd9d..d6e27331 100644
--- a/static/files/dyna.js
+++ b/static/files/dyna.js
@@ -207,7 +207,7 @@ function pdDoSearch(f) {
else {
if(f)
d.innerHTML = '...searching...';
- ajax('/xml/producers.xml?q='+escape(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
+ ajax('/xml/producers.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
if(!hr || hr.readyState != 4 || !hr.responseText)
return;
if(hr.status != 200)
@@ -323,7 +323,7 @@ function rlDoSearch(f) {
else {
if(f)
d.innerHTML = '...searching...';
- ajax('/xml/vn.xml?q='+escape(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
+ ajax('/xml/vn.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
if(!hr || hr.readyState != 4 || !hr.responseText)
return;
if(hr.status != 200)
@@ -464,7 +464,7 @@ function vnDoSearch(f) {
else {
if(f)
d.innerHTML = '...searching...';
- ajax('/xml/vn.xml?q='+escape(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
+ ajax('/xml/vn.xml?q='+encodeURIComponent(v)+'&r='+(Math.floor(Math.random()*999)+1), function () {
if(!hr || hr.readyState != 4 || !hr.responseText)
return;
if(hr.status != 200)