mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
make callback stuff work on mod_perl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8247 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -123,10 +123,10 @@ static int perl_parse_and_execute(PerlInterpreter *my_perl, char *input_code, ch
|
||||
char *file = input_code;
|
||||
|
||||
if (!switch_is_file_path(file)) {
|
||||
file = switch_mprintf("require '%s/%s';\n", SWITCH_GLOBAL_dirs.script_dir, file);
|
||||
file = switch_mprintf("do '%s/%s';\n", SWITCH_GLOBAL_dirs.script_dir, file);
|
||||
switch_assert(file);
|
||||
} else {
|
||||
file = switch_mprintf("require '%s';\n", file);
|
||||
file = switch_mprintf("do '%s';\n", file);
|
||||
switch_assert(file);
|
||||
}
|
||||
error = Perl_safe_eval(my_perl, file);
|
||||
|
Reference in New Issue
Block a user