Project

General

Profile

Actions

Bug(バグ) #3221

open

opMobileFrontWebController::redirect() 内のURLの置換処理に不備があり、想定しないリダイレクトのURLが生成される場合がある

Added by Shinichi Urabe over 12 years ago. Updated almost 5 years ago.

Status:
Accepted(着手)
Priority:
Normal(通常)
Assignee:
-
Target version:
Start date:
2012-10-02
Due date:
% Done:

0%

Estimated time:
3.6 で発生するか:
Yes (はい)
3.8 で発生するか:
Unknown (未調査)

Description

現象

※ xxxx は古いセッション、zzzz はリダイレクト時点のセッションとする

SNS内の /url?OpenPNE_mobile_frontend=xxxx&hoge=fuga#foobar のようなURLにリダイレクトさせようとした場合に、 /url?OpenPNE_mobile_frontend=zzzz へのリダイレクトとして置き換わってしまう

SNS内の /url?OpenPNE_mobile_frontend=zzzz&hoge=fuga#foobar のようなURLにリダイレクトさせようとした場合には、 /url?hoge=fugaOpenPNE_mobile_frontend=zzzz&OpenPNE_mobile_frontend=zzzz#foobar へのリダイレクトとして置き換わってしまう hoge=fugaOpenPNE_mobile_frontend= は間に & が抜けている

原因

  • opMobileFrontWebController::redirect() の84行目 URL置き換えの正規表現に不備がある
  • opMobileFrontWebController::genUrl() の60行目 URLに?が含まれていても、&や?で終わらない場合のURLの考慮が足りない

修正内容

修正内容を記入


Files

issue-3221.patch (1.24 KB) issue-3221.patch Shinichi Urabe, 2012-10-02 01:28

Related issues 2 (2 open0 closed)

Copied to OpenPNE 3 - Backport(バックポート) #3703: opMobileFrontWebController::redirect() 内のURLの置換処理に不備があり、想定しないリダイレクトのURLが生成される場合があるNew(新規)isao sano2012-10-02

Actions
Copied to OpenPNE 3 - Backport(バックポート) #3704: opMobileFrontWebController::redirect() 内のURLの置換処理に不備があり、想定しないリダイレクトのURLが生成される場合があるNew(新規)isao sano2012-10-02

Actions
Actions #1

Updated by Shinichi Urabe over 12 years ago

  • Description updated (diff)
Actions #2

Updated by Shinichi Urabe over 12 years ago

  • Description updated (diff)
Actions #3

Updated by Shinichi Urabe over 12 years ago

修正案のパッチを添付します

Actions #4

Updated by Shinichi Urabe over 12 years ago

  • Description updated (diff)
Actions #5

Updated by isao sano over 10 years ago

  • Copied to Backport(バックポート) #3703: opMobileFrontWebController::redirect() 内のURLの置換処理に不備があり、想定しないリダイレクトのURLが生成される場合がある added
Actions #6

Updated by isao sano over 10 years ago

  • Copied to Backport(バックポート) #3704: opMobileFrontWebController::redirect() 内のURLの置換処理に不備があり、想定しないリダイレクトのURLが生成される場合がある added
Actions #8

Updated by kaoru n almost 8 years ago

  • Target version changed from OpenPNE 3.9.0-old to OpenPNE 3.9.0
Actions #9

Updated by Shinichi Urabe over 7 years ago

  • Status changed from New(新規) to Accepted(着手)
Actions #10

Updated by kaoru n almost 5 years ago

  • Target version changed from OpenPNE 3.9.0 to OpenPNE 3.10.x
Actions

Also available in: Atom PDF