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

@@ -36,17 +36,11 @@ class XmlFormFieldToolButton extends XmlFormField
public function render($value = null, $paramDummy2 = null)
{
$url = $this->file;
if ($this->home === "methods") {
$url = G::encryptlink(SYS_URI . $url);
}
if ($this->home === "public_html") {
$url = '/' . $url;
}
$urlAlt = $this->fileAlt;
if ($this->fileAlt !== '') {
if ($this->home === "methods") {
$urlAlt = G::encryptlink(SYS_URI . $urlAlt);
}
if ($this->home === "public_html") {
$urlAlt = '/' . $urlAlt;
}

View File

@@ -114,7 +114,7 @@
*/
// URL Key
define("URL_KEY", 'c0l0s40pt1mu59r1m3' );
define('URL_KEY', config('app.key'));
// Other definitions
define('TIMEOUT_RESPONSE', 100 ); //web service timeout