Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Атаман

PHP Notice: Undefined variable: _REQUEST

Recommended Posts

Всем добрый день!

 

Ггул бот шарится по форуму, после которого error логи немного засыпаны ошибками о неизвестной переменной. Можете подсказать, какую переменную ему нужно использовать? PHP Version 5.6.17-0+deb8u1

 

[sun Mar 20 18:10:39.864106 2016] [:error] [pid 20029] [client  66.249.78.184:39744] PHP Notice:  Undefined variable: _REQUEST in  /var/www/site/data/www/site.com/forum/public/min/config.php on line 12
[sun  Mar 20 18:10:39.864194 2016] [:error] [pid 20029] [client  66.249.78.184:39744] PHP Warning:  Invalid argument supplied for  foreach() in /var/www/site/data/www/site.com/forum/public/min/config.php  on line 12
[sun Mar 20 18:10:40.817039 2016] [:error] [pid 20036]  [client 66.249.78.184:39929] PHP Notice:  Undefined variable: _REQUEST  in /var/www/site/data/www/site.com/forum/public/min/config.php on line  12
[sun Mar 20 18:10:40.817108 2016] [:error] [pid 20036] [client  66.249.78.184:39929] PHP Warning:  Invalid argument supplied for  foreach() in /var/www/site/data/www/site.com/forum/public/min/config.php  on line 12
[sun Mar 20 18:10:41.306090 2016] [:error] [pid 20037]  [client 66.249.78.191:40008] PHP Notice:  Undefined variable: _REQUEST  in /var/www/site/data/www/site.com/forum/public/min/config.php on line  12
[sun Mar 20 18:10:41.306158 2016] [:error] [pid 20037] [client  66.249.78.191:40008] PHP Warning:  Invalid argument supplied for  foreach() in /var/www/site/data/www/site.com/forum/public/min/config.php  on line 12
[sun Mar 20 18:33:30.569894 2016] [:error] [pid 23182]  [client 66.249.78.177:43952] PHP Notice:  Undefined variable: _REQUEST  in /var/www/site/data/www/site.com/forum/public/min/config.php on line  12
[sun Mar 20 18:33:30.569976 2016] [:error] [pid 23182] [client  66.249.78.177:43952] PHP Warning:  Invalid argument supplied for  foreach() in /var/www/site/data/www/site.com/forum/public/min/config.php  on line 12

 

В 12 строке /public/min/config.php

 

foreach( $_REQUEST as $k => $v )
{
$_REQUEST[ $k ]	= str_replace( chr(0), '', $v );
}

Share this post


Link to post
Share on other sites

В четвертой версии больше не используется папка /public/, ее можно удалить.

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...