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

View File

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