Skip to content
Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nijel committed Jan 27, 2016
1 parent d4b9c22 commit 5a3de10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/phpseclib/Crypt/AES.php
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions libraries/phpseclib/Crypt/Rijndael.php
Expand Up @@ -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;

Expand Down

0 comments on commit 5a3de10

Please sign in to comment.