mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
Make sure the path given to perl_script_load_file is a file.
This commit is contained in:
parent
003f15507d
commit
b87c7b31d5
1 changed files with 3 additions and 0 deletions
|
|
@ -293,6 +293,9 @@ PERL_SCRIPT_REC *perl_script_load_file(const char *path)
|
|||
|
||||
g_return_val_if_fail(path != NULL, NULL);
|
||||
|
||||
if (g_file_test(path, G_FILE_TEST_IS_REGULAR) == FALSE)
|
||||
return NULL;
|
||||
|
||||
name = script_file_get_name(path);
|
||||
return script_load(name, path, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue