Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/YOURLS/YOURLS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
author྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>2022-04-03 22:59:35 +0300
committerGitHub <noreply@github.com>2022-04-03 22:59:35 +0300
commit5deeec7edbe2df6f5de7ae64d85e5aa0c08e078f (patch)
treeb13929c220190221937c26d169a1268a2b12f003 /admin
parent0d6cfca19cf9438986d7730904b2fde76a8cce36 (diff)
Plugin API : sandbox and uninstall procedure (#3258)
- foolproof (?) activation sandbox that actually works - uninstall method - Plugin activation sandbox and unit tests - Uninstall script and tests
Diffstat (limited to 'admin')
-rw-r--r--admin/plugins.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/plugins.php b/admin/plugins.php
index 26e568b1..4648ac38 100644
--- a/admin/plugins.php
+++ b/admin/plugins.php
@@ -16,7 +16,7 @@ if( isset( $_GET['action'] ) ) {
yourls_verify_nonce( 'manage_plugins', $_REQUEST['nonce'] );
// Check plugin file is valid
- if( isset( $_GET['plugin'] ) && yourls_validate_plugin_file( YOURLS_PLUGINDIR.'/'.$_GET['plugin'].'/plugin.php') ) {
+ if(isset( $_GET['plugin'] ) && yourls_is_a_plugin_file(YOURLS_PLUGINDIR . '/' . $_GET['plugin'] . '/plugin.php') ) {
// Activate / Deactive
switch( $_GET['action'] ) {