From 1a306ee9e197d5932a37eb07b108129485844e27 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 29 Sep 2012 10:43:13 +0000 Subject: [PATCH] check script extension --- lam/templates/tests/lamdaemonTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lam/templates/tests/lamdaemonTest.php b/lam/templates/tests/lamdaemonTest.php index 0328425a..04c25dac 100644 --- a/lam/templates/tests/lamdaemonTest.php +++ b/lam/templates/tests/lamdaemonTest.php @@ -195,6 +195,12 @@ function lamRunLamdaemonTestSuite($serverName, $serverTitle, $testQuota, $contai $container->addElement(new htmlOutputText(_("No lamdaemon path set, please update your LAM configuration settings.")), true); $stopTest = true; } + elseif (substr($_SESSION['config']->get_scriptPath(), -3) != '.pl') { + $container->addElement(new htmlImage($failImage)); + $container->addElement($spacer); + $container->addElement(new htmlOutputText(_("Lamdaemon path does not end with \".pl\". Did you enter the full path to the script?")), true); + $stopTest = true; + } else { $container->addElement(new htmlImage($okImage)); $container->addElement($spacer);