SoftwareFoundationGroupAtKyotoU / automata

Other
3 stars 10 forks source link

Bugfix about how to escape 'path' parameter. #378

Closed h-inoue closed 9 years ago

h-inoue commented 9 years ago

uriのpathパラメータが正しくescapeされるようにしました.以下の影響があります.

前者はconfig.ruとfile_view.jsのバグ.後者の解決方法は,rackとcgiの場合で異なっています.

krtx commented 9 years ago

cgi 実行のときに、ファイルを開こうとすると not found になりました。Apache のバージョンは 2.4.9 で、Rewrite のログは http://ix.io/iia です。

スタンドアロンのほうは良さそうでした。

h-inoue commented 9 years ago

VirtualHostにAllowEncodedSlashes Onを足す

確認ですが,これは追加してますか?こちらのApache 2.4.10 では動いている.

krtx commented 9 years ago

ごめんなさい、追加してませんでした。追加するとちゃんと見れました。

skymountain commented 9 years ago

個人的には JS/Ruby ともにパスは encodeURIComponent で一括で置換して必要な文字だけを unescape するのに一票です.

h-inoue commented 9 years ago

個人的には JS/Ruby ともにパスは encodeURIComponent で一括で置換して必要な文字だけを unescape するのに一票です.

これをやってみました

skymountain commented 9 years ago

:clap: