Commit 9a7ad49f authored by Nigel Kukard's avatar Nigel Kukard

Make sure we only eval() at runtime

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