forked from Wavyzz/dolibarr
FIX security vulnerability reported by ADLab of Venustech
This commit is contained in:
@@ -23,5 +23,13 @@
|
||||
* Put detailed description here.
|
||||
*/
|
||||
|
||||
// Protection to avoid direct call of template
|
||||
if (empty($conf) || ! is_object($conf))
|
||||
{
|
||||
print "Error, template page can't be called as URL";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
/** Your code here. */
|
||||
echo "Hello world!";
|
||||
|
||||
Reference in New Issue
Block a user