if (preg_match('/[^a-zA-Z0-9_]/', $key))
{
$this->error(new XenForo_Phrase('please_enter_an_id_using_only_alphanumeric'), 'modification_key');
return false;
}
The verification of the template modification key.
I never knew that it wasn't already constrained to those characters, but it was. Seems like Extra Portal has modification keys such as:
add simpleportal promotelink
It tends to be the description copy and pasted, it seems.
That's not entirely true. The description on the page at is (and always has been as far as I can remember): This is used to uniquely identify a modification across add-on upgrades.
But you're right. It's a reasonable change for XF to have made and would be an add-on fix.
This wasn't actually supposed to trigger when installing or upgrading an add-on. It was mostly to get the add-on developers to be aware of it when creating or changing. I just forgot that, of course, this check would run on installation of an add-on.
So the check now only runs when you try to edit the modification (which would require a change to push anything through).