aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-04-28 04:37:28 +0000
committerrvelices <rv-github@modusoptimus.com>2006-04-28 04:37:28 +0000
commit1cc593f7606c34428271a4beee5755a301988e4e (patch)
treeff688255aef1838ca3a62eb8e936c0bf5f3eb3c0 /picture.php
parentd6264b468c3708ac027c8caac40fd26c83143ed8 (diff)
bug 359: transform rating html A links to FORM because some bots rate
pictures (even if rel="nofollow" is set) git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1285 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 3dc08ac40..486e303cb 100644
--- a/picture.php
+++ b/picture.php
@@ -165,7 +165,8 @@ UPDATE '.CATEGORIES_TABLE.'
case 'rate' :
{
include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
- rate_picture($page['image_id'], $_GET['rate']);
+ rate_picture($page['image_id'],
+ isset($_POST['rate']) ? $_POST['rate'] : $_GET['rate'] );
redirect($url_self);
}
case 'delete_comment' :