diff --git a/htdocs/asterisk/cidlookup.php b/htdocs/asterisk/cidlookup.php index d1dcb501f41..6b566e60f55 100644 --- a/htdocs/asterisk/cidlookup.php +++ b/htdocs/asterisk/cidlookup.php @@ -28,10 +28,17 @@ * */ -$phone = $_GET['phone']; include '../master.inc.php'; +$phone = GETPOST('phone'); + + +// Security check +if (empty($conf->clicktodial->enabled)) { + print "Error: Module Click to dial not active\n"; + exit; +} // Check parameters if (empty($phone))