From 67770d1807d75c57e823a00b730cdda6db78d2f4 Mon Sep 17 00:00:00 2001
From: Prasad <prasad@vtiger.com>
Date: Fri, 21 Jul 2023 20:47:44 +0530
Subject: [PATCH] Fixes #1776: Revert smarty policy as it disabled global
 function too.

---
 includes/runtime/Viewer.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/includes/runtime/Viewer.php b/includes/runtime/Viewer.php
index 22ad79ab1..45b490ba1 100644
--- a/includes/runtime/Viewer.php
+++ b/includes/runtime/Viewer.php
@@ -58,11 +58,6 @@ class Vtiger_Viewer extends Smarty {
 		$this->setTemplateDir(array($templatesDir));
 		$this->setCompileDir($compileDir);		
 
-		// FOR SECURITY
-		$policy = new Smarty_Security($this);
-		$policy->allow_super_globals = false;
-		$this->enableSecurity($policy);
-		
 		// FOR DEBUGGING: We need to have this only once.
 		static $debugViewerURI = false;
 		if (self::$debugViewer && $debugViewerURI === false) {
-- 
GitLab