TASK-232 Deprecated the funcion encryptlink
This commit is contained in:
@@ -2519,21 +2519,12 @@ class Bootstrap
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encrypt URL DEPRECATED
|
* @deprecated Lurana v2, We keep this function only for backwards compatibility
|
||||||
*
|
|
||||||
* @author Fernando Ontiveros Lira <fernando@colosa.com>
|
|
||||||
* @access public
|
|
||||||
* @param string $urlLink
|
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
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;
|
return $url;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* isWinOs
|
* isWinOs
|
||||||
|
|||||||
@@ -770,21 +770,12 @@ class G
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encrypt URL DEPRECATED
|
* @deprecated Lurana v2, We keep this function only for backwards compatibility
|
||||||
*
|
|
||||||
* @author Fernando Ontiveros Lira <fernando@colosa.com>
|
|
||||||
* @access public
|
|
||||||
* @param string $urlLink
|
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
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;
|
return $url;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parsing the URI
|
* Parsing the URI
|
||||||
|
|||||||
Reference in New Issue
Block a user