- Affected version
- 2.2.0B3
PHP:
if (!preg_match('#^[a-z0-9_]+$#i', $name))
{
// We only enforce this with development on and outside of the install/upgrade system because this
// constraint was bugged prior to 2.2. This should avoid end users running into it or upgrades being
// blocked because of it.
if (\XF::$developmentMode && !(\XF::app() instanceof \XF\Install\App))
{
throw $tag->exception(\XF::phrase('macro_names_may_only_contain_alphanumeric_underscore'));
}
}
Without the macro name, this is stupidly hard to troubleshoot.