プロジェクト

全般

プロフィール

Backport(バックポート) #3704 » issue-3221.patch

Shinichi Urabe, 2012-10-02 01:28

差分を表示:

lib/controller/opMobileFrontWebController.class.php
$url = substr($url, 0, $fragPos);
}
if (strpos($url, '?') === false)
$endPos = strlen($url) - 1;
$qPos = strrpos($url, '?');
$aPos = strrpos($url, '&');
if ($qPos === false)
{
$url .= '?';
}
// When URL string does not terminate in a question mark and the ampersand, and a question mark is not included.
elseif ($qPos !== false && $qPos !== $endPos && $aPos !== $endPos)
{
$url .= '&';
}
$url .= SID.$fragment;
}
......
if (!$this->context->getRequest()->isCookie())
{
$matchd = '/'.preg_quote(session_name(),'/').'=.*([&|#]?)/';
$matchd = '/'.preg_quote(session_name(),'/').'=[^&#]*([&#]?)/';
if (preg_match($matchd, $url))
{
$url = preg_replace($matchd, SID.'\1', $url);
    (1-1/1)