// Context part 14

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7653 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-19 12:28:30 +00:00
parent fce17efbb8
commit e91c92ce98
5 changed files with 28 additions and 25 deletions
+2
View File
@@ -57,6 +57,8 @@ class ToolsCore
*/
public static function redirect($url, $baseUri = __PS_BASE_URI__, Context $context = null)
{
if (!$context)
$context = Context::getContext();
if (strpos($url, 'http://') === FALSE && strpos($url, 'https://') === FALSE)
{
if (strpos($url, $baseUri) !== FALSE && strpos($url, $baseUri) == 0)