// Context part 14

This commit is contained in:
tDidierjean
2011-07-19 12:28:30 +00:00
parent 0060d1edab
commit c620f4ce09
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)