TASK-232 Change encryt with URL_KEY and Deprecate encryptlink
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user