diff options
Diffstat (limited to 'include/common.inc.php')
-rw-r--r-- | include/common.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index 61157fa5a..46d11e4e4 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -266,5 +266,10 @@ add_event_handler('render_comment_content', 'render_comment_content'); add_event_handler('render_comment_author', 'strip_tags'); add_event_handler('render_tag_url', 'str2url'); add_event_handler('blockmanager_register_blocks', 'register_default_menubar_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL-1); +if ( !empty($conf['original_url_protection']) ) +{ + add_event_handler('get_element_url', 'get_element_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 ); + add_event_handler('get_src_image_url', 'get_src_image_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 ); +} trigger_action('init'); ?> |