TASK-232 Change encryt with URL_KEY and Deprecate encryptlink

This commit is contained in:
Brayan Pereyra
2025-09-23 19:52:18 +00:00
parent 554b4ad14b
commit 157f04d328
8 changed files with 10 additions and 19 deletions

View File

@@ -2519,14 +2519,14 @@ class Bootstrap
}
/**
* Encrypt URL
* Encrypt URL DEPRECATED
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param string $urlLink
* @return string
*/
public function encryptlink($url)
public function encryptlinkDeprecated($url)
{
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') {
return urlencode(Bootstrap::encrypt($url, URL_KEY));

View File

@@ -770,14 +770,14 @@ class G
}
/**
* Encrypt URL
* Encrypt URL DEPRECATED
*
* @author Fernando Ontiveros Lira <fernando@colosa.com>
* @access public
* @param string $urlLink
* @return string
*/
public static function encryptlink($url)
public static function encryptlinkDeprecated($url)
{
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') {
return urlencode(G::encrypt($url, URL_KEY));

View File

@@ -5694,9 +5694,6 @@ class XmlFormFieldImage extends XmlFormField
public function render($value = null, $owner = null)
{
$url = G::replaceDataField($this->file, $owner->values);
if ($this->home === "methods") {
$url = G::encryptlink(SYS_URI . $url);
}
if ($this->home === "public_html") {
$url = '/' . $url;
}