$inside_init_fxn = 1;
- # throw away lines that are not exactly one "brace set" deep
- #
- if ($brace_count > 1) {
- next;
- }
-
-
# count open braces
#
if ($line =~ /{/) {
}
+ # throw away lines that are not exactly one "brace set" deep
+ #
+ if ($brace_count > 1) {
+ next;
+ }
+
+
# also not interested in lines that are not
# hook registration points
#
$options[1] =~ s/\\'/'/g;
$options[1] =~ s/\\\\/\\/g;
- if ( $options[0] =~ /^squirrelmail_plugin_hooks\s*\[\s*['"]([a-z0-9._-]+)['"]\s*\]\s*\[\s*['"]([0-9a-z._-]+)['"]\s*\]/i ) {
+ if ( $options[0] =~ /^squirrelmail_plugin_hooks\s*\[\s*['"]([a-z0-9 \/._*-]+)['"]\s*\]\s*\[\s*['"]([0-9a-z._-]+)['"]\s*\]/i ) {
$hook_name = $1;
$hooked_plugin_name = $2;
# Note: if we wanted to stop plugins from registering