Project

General

Profile

Actions

Bug #8257

closed

REGEXP Autoloader plugin usages break for integer prefixed folders

Added by krileon over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
26 November 2020
Due date:
% Done:

100%

Estimated time:

Description

If your site is contained in a folder prefixed with 001 (e.g. 001_test) this will cause the autoloader REGEXP to treat the \0 as part of the replace syntax.

AutoLoader::registerExactMap( '%^CB/Plugin/AutoActions/(.+)%i', __DIR__ . '/library/$1.php' );

This would produce the following pathing issues.

ROOT\wwwCB/Plugin/AutoActions/Trigger/AdminTrigger1_test\components\com_comprofiler\plugin\user\plug_cbautoactions/library/Trigger/AdminTrigger.ph

Due to the below replace syntax.

ROOT\www\001_test\components\com_comprofiler\plugin\user\plug_cbautoactions/library/$1.php

https://www.joomlapolis.com/forum/153-professional-member-support/242258-solved-plugin-autoaction-installation-problem

Actions #1

Updated by krileon over 3 years ago

  • Description updated (diff)
Actions #2

Updated by krileon over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !1599

Actions #3

Updated by beat about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF