Skip to content

CMP's fail when namespace contains slashes #11136

Open
@fireproofsocks

Description

@fireproofsocks

If you create a namespace such as "vendorname/packagename", the modmanagercontroller.class.php file, the modExtraManagerController class, getControllerClassName() function fails to generate a valid classname so it's impossible to use the recommended MODx rules for CMPs and manager controllers.

The classname needs a regex that filters out invalid classnames:

return ucfirst($namespace).implode('',$o).$postFix;

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-corearea-packagesIssues, related to package management and workspacesbugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions