|
@@ -192,8 +192,9 @@ class NewsController extends Controller
|
|
$this->redirect($model->getUrl(true).$queryString, 301);
|
|
$this->redirect($model->getUrl(true).$queryString, 301);
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
|
|
+
|
|
if(\Yii::$app->request->isPost){
|
|
if(\Yii::$app->request->isPost){
|
|
- $capcha_result = \Yii::$app->session->getFlash('capcha_a')+\Yii::$app->session->getFlash('capcha_b');
|
|
|
|
|
|
+ $capcha_result = ceil(base64_decode(\Yii::$app->request->post('capcha_salt'))*3.14);
|
|
if(
|
|
if(
|
|
\Yii::$app->request->post('capcha')=="" ||
|
|
\Yii::$app->request->post('capcha')=="" ||
|
|
\Yii::$app->request->post('capcha')!= $capcha_result
|
|
\Yii::$app->request->post('capcha')!= $capcha_result
|