Fix error in encryptLink

This commit is contained in:
Brayan Pereyra
2025-09-23 20:13:50 +00:00
parent 157f04d328
commit 177c7fd5f7
4 changed files with 2 additions and 9 deletions

View File

@@ -777,7 +777,7 @@ class G
* @param string $urlLink
* @return string
*/
public static function encryptlinkDeprecated($url)
public static function encryptlink($url)
{
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') {
return urlencode(G::encrypt($url, URL_KEY));

View File

@@ -1,3 +1 @@
PM.Sessions.register();
PM.Sessions.setLabel('ID_BLOCKER_MSG', PM.Sessions.getCookie('PM-Warning'));
PM.Sessions.register();

View File

@@ -221,9 +221,6 @@ $flagForgotPassword = isset($oConf->aConfig['login_enableForgotPassword'])
? $oConf->aConfig['login_enableForgotPassword']
: 'off';
$cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + (24 * 60 * 60), 'path' => SYS_URI]);
setcookie('PM-Warning', trim(G::LoadTranslation('ID_BLOCKER_MSG'), '*'), $cookieOptions);
$configS = System::getSystemConfiguration('', '', config("system.workspace"));
$activeSession = isset($configS['session_block']) ? !(int)$configS['session_block'] : true;
$cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + (24 * 60 * 60)]);

View File

@@ -143,8 +143,6 @@ switch (WS_IN_LOGIN) {
$fileLogin = 'login/sysLogin';
break;
}
$cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + (24 * 60 * 60), 'path' => SYS_CURRENT_URI]);
setcookie('PM-Warning', trim(G::LoadTranslation('ID_BLOCKER_MSG'), '*'), $cookieOptions);
$cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + (24 * 60 * 60)]);
setcookie('PM-TabPrimary', uniqid(), $cookieOptions);