Permalink
Browse files

update

  • Loading branch information...
1 parent 22cd59e commit 6606f42a0e5e9fe8719d98fe7ae11741d404bce5 @williamjxj committed Dec 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 ag.php
View
4 ag.php
@@ -53,6 +53,10 @@
return;
}
elseif(isset($_POST['captcha']) && isset($_POST['comment']) && isset($_POST['role'])) {
+ if (empty($_SESSION['captcha']) || trim(strtolower($_REQUEST['captcha'])) != $_SESSION['captcha']) {
+ echo 'N';
+ return;
+ }
$role = $_POST['role'];
$pid = $obj->insert_pk3();
if($pid) {

0 comments on commit 6606f42

Please sign in to comment.