Avoid execution outside phpMyAdmin
This is hacky, but avoids path disclossure on direct access to the scripts. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
d4b9c22c1f
commit
5a3de108f2
@ -46,6 +46,9 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
namespace phpseclib\Crypt;
|
||||
|
||||
|
||||
@ -51,6 +51,9 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
namespace phpseclib\Crypt;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user