Skip to content
Snippets Groups Projects
Commit 9a7ad49f authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Make sure we only eval() at runtime

parent fde0bca8
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ sub plugin_init ...@@ -145,7 +145,7 @@ sub plugin_init
# Load statistics pages if the statistics module is enabled # Load statistics pages if the statistics module is enabled
if (isPluginLoaded('statistics')) { if (isPluginLoaded('statistics')) {
# Check if we can actually load the pages # Check if we can actually load the pages
eval{ use opentrafficshaper::plugins::webserver::pages::statistics }; eval("use opentrafficshaper::plugins::webserver::pages::statistics");
if ($@) { if ($@) {
$logger->log(LOG_INFO,"[WEBSERVER] Failed to load statistics pages: $@"); $logger->log(LOG_INFO,"[WEBSERVER] Failed to load statistics pages: $@");
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment