mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[perl] ses can be NULL for pre_format_html_hook. Refs #291
This commit is contained in:
parent
e47a482590
commit
88de3ca754
@ -164,7 +164,7 @@ script_hook_pre_format_html(va_list ap, void *data)
|
|||||||
struct fragment *fragment = get_cache_fragment(cached);
|
struct fragment *fragment = get_cache_fragment(cached);
|
||||||
char *url = struri(cached->uri);
|
char *url = struri(cached->uri);
|
||||||
|
|
||||||
if (my_perl && ses && url && cached->length && *fragment->data)
|
if (my_perl && url && cached->length && *fragment->data)
|
||||||
do_script_hook_pre_format_html(url, cached, fragment);
|
do_script_hook_pre_format_html(url, cached, fragment);
|
||||||
|
|
||||||
return EVENT_HOOK_STATUS_NEXT;
|
return EVENT_HOOK_STATUS_NEXT;
|
||||||
|
Loading…
Reference in New Issue
Block a user