TASK-232 Deprecated the funcion encryptlink

This commit is contained in:
Brayan Pereyra
2025-09-25 01:57:07 +00:00
parent 918c7b5ff6
commit 44d8dfb025
2 changed files with 6 additions and 24 deletions

View File

@@ -2519,20 +2519,11 @@ class Bootstrap
} }
/** /**
* Encrypt URL DEPRECATED * @deprecated Lurana v2, We keep this function only for backwards compatibility
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param string $urlLink
* @return string
*/ */
public function encryptlinkDeprecated($url) public function encryptlink($url)
{ {
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') { return $url;
return urlencode(Bootstrap::encrypt($url, URL_KEY));
} else {
return $url;
}
} }
/** /**

View File

@@ -770,20 +770,11 @@ class G
} }
/** /**
* Encrypt URL DEPRECATED * @deprecated Lurana v2, We keep this function only for backwards compatibility
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param string $urlLink
* @return string
*/ */
public static function encryptlink($url) public function encryptlink($url)
{ {
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') { return $url;
return urlencode(G::encrypt($url, URL_KEY));
} else {
return $url;
}
} }
/** /**