The world's most advanced component creator for Joomla
An idea
MCD
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started
Need a custom design
Get started

Severity: high

We recommend you to upgrade all your generated components, at least the following file :

[backend component]/classes/file/file.php

Concerned function : getDirectory()

Here is a copy of the content of the function for users who do not have renewed their account:

public static function getDirectory($path)
{
    $markers = [MYCOMPONENT]Helper::getDirectories();
    $foundDir = false;
    // Search and parse the folders aliases
    foreach($markers as $marker => $pathStr)
    {
        // Make sure at least one folder alias has been defined
        if (preg_match("/^\[" . $marker . "\]/", $path))
            $foundDir = true;
        $path = preg_replace("/^\[" . $marker . "\]/", $pathStr, $path);
    }
    // A Marker directory MUST be defined > Local File Inclusion security
    if (!$foundDir)
        return null;
    // Protect against (Local File Inclusion)
    $path = preg_replace("/\.\.+/", "", $path);
    return $path;
}

Hi guys Before I ask for help just like to say I tried the tutorials on how to make a 2.5 component WOW.... HECTIC!! J-Cook is really amazing in its simplicity!!
Dorac (Forum)  

Get Started