BugTrack/554
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* [携帯電話] HTTPのLocation ヘッダによるリダイレクトに失...
- 元タイトル: editによるリダイレクト
-ページ: BugTrack
-投稿者: [[Data]]
-優先順位: 重要
-状態: 完了
-カテゴリー: プラグイン
-投稿日: 2004-03-04 (木) 19:30:13
-バージョン: 1.4.2
**メッセージ [#n2c22f81]
編集の更新でeditプラグインが呼ばれますが、こいつがHTTP 30...
このときのLocationヘッダのURLが、完全修飾のURLでないため...
私は以下の修正をしましたが、適切かどうか不明です。
-header("Location: $script?".rawurlencode($post['page']));
+$url = get_script_uri();
+header("Location: ".$url."?".rawurlencode($post['page']);
----
** ちょっと確認: [#v4b22c87]
- RFC2616: Hypertext Transfer Protocol -- HTTP/1.1
-- ftp://ftp.iij.ad.jp/pub/rfc/rfc2616.txt
14.30 Location
The Location response-header field is used to redirect...
to a location other than the Request-URI for completio...
request or identification of a new resource. For 201 (...
responses, the Location is that of the new resource wh...
by the request. For 3xx responses, the location SHOULD...
server's preferred URI for automatic redirection to th...
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
----
-RFC2616上のLocationヘッダの定義は、absoluteURI となって...
-現在は$scriptが自動的にget_script_uri()を返すので、この...
-掘り出しありがとうございます>[[Ratbeta]] しかし残念なが...
-ここでの問題は、自分自身を指したいというニーズが複数あっ...
-原因はedit.inc.phpではなかったわけですね…。となると、他...
-バグが発生するプラグインは上記以外でもbugtrack,newpage,r...
-- [[cvs:lib/func.php]] (v1.4:1.8)
-- [[cvs:plugin/amazon.inc.php]] (v1.4:1.3)
-- [[cvs:plugin/bugtrack.inc.php]] (v1.4:1.17)
-- [[cvs:plugin/edit.inc.php]] (v1.4:1.18)
-- [[cvs:plugin/newpage.inc.php]] (v1.4:1.10)
-- [[cvs:plugin/pcomment.inc.php]] (v1.4:1.34)
-- [[cvs:plugin/rename.inc.php]] (v1.4:1.16)
-- [[cvs:plugin/tracker.inc.php]] (v1.4:1.24)
-その通りです :) -- [[henoheno]] &new{2004-10-10 (日) 19:...
-1) Locationヘッダを利用している箇所は get_script_uri() ...
-- [[cvs:lib/init.php]] (v1.4:1.12)
-- [[cvs:lib/func.php]] (v1.4:1.9)
-追加です。マニュアルで $script を設定している環境で get_...
//#comment
終了行:
* [携帯電話] HTTPのLocation ヘッダによるリダイレクトに失...
- 元タイトル: editによるリダイレクト
-ページ: BugTrack
-投稿者: [[Data]]
-優先順位: 重要
-状態: 完了
-カテゴリー: プラグイン
-投稿日: 2004-03-04 (木) 19:30:13
-バージョン: 1.4.2
**メッセージ [#n2c22f81]
編集の更新でeditプラグインが呼ばれますが、こいつがHTTP 30...
このときのLocationヘッダのURLが、完全修飾のURLでないため...
私は以下の修正をしましたが、適切かどうか不明です。
-header("Location: $script?".rawurlencode($post['page']));
+$url = get_script_uri();
+header("Location: ".$url."?".rawurlencode($post['page']);
----
** ちょっと確認: [#v4b22c87]
- RFC2616: Hypertext Transfer Protocol -- HTTP/1.1
-- ftp://ftp.iij.ad.jp/pub/rfc/rfc2616.txt
14.30 Location
The Location response-header field is used to redirect...
to a location other than the Request-URI for completio...
request or identification of a new resource. For 201 (...
responses, the Location is that of the new resource wh...
by the request. For 3xx responses, the location SHOULD...
server's preferred URI for automatic redirection to th...
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
----
-RFC2616上のLocationヘッダの定義は、absoluteURI となって...
-現在は$scriptが自動的にget_script_uri()を返すので、この...
-掘り出しありがとうございます>[[Ratbeta]] しかし残念なが...
-ここでの問題は、自分自身を指したいというニーズが複数あっ...
-原因はedit.inc.phpではなかったわけですね…。となると、他...
-バグが発生するプラグインは上記以外でもbugtrack,newpage,r...
-- [[cvs:lib/func.php]] (v1.4:1.8)
-- [[cvs:plugin/amazon.inc.php]] (v1.4:1.3)
-- [[cvs:plugin/bugtrack.inc.php]] (v1.4:1.17)
-- [[cvs:plugin/edit.inc.php]] (v1.4:1.18)
-- [[cvs:plugin/newpage.inc.php]] (v1.4:1.10)
-- [[cvs:plugin/pcomment.inc.php]] (v1.4:1.34)
-- [[cvs:plugin/rename.inc.php]] (v1.4:1.16)
-- [[cvs:plugin/tracker.inc.php]] (v1.4:1.24)
-その通りです :) -- [[henoheno]] &new{2004-10-10 (日) 19:...
-1) Locationヘッダを利用している箇所は get_script_uri() ...
-- [[cvs:lib/init.php]] (v1.4:1.12)
-- [[cvs:lib/func.php]] (v1.4:1.9)
-追加です。マニュアルで $script を設定している環境で get_...
//#comment
ページ名: