-
Notifications
You must be signed in to change notification settings - Fork 4
/
979.txt
70 lines (54 loc) · 2.89 KB
/
979.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[5] かつて [[URL]] の構文要素として [DFN[params]]、[DFN[param]] が定義されていました。
[6] 現在は[[パス][URL path]]の一部として扱われ、特別な意味は持っていません。
* 構文
[HISTORY[
- [1] [CODE(ABNF)[[DFN[params]] := [[param]] *( ";" param ) ;; [[RFC 1808]]]]
- [2] [CODE(ABNF)[[DFN[param]] := *( pchar / "/" ) ;; RFC 1808]]
[3] [[RFC 2396]] では
[CODE(ABNF)[[DFN[[[segment]]]] := *[[pchar]] *( ";" param )]],
[CODE(ABNF)[[DFN[[[param]]]] := *pchar]] です。 RFC 1808
では一節を裂いていたのに 2396 では tone down して [CODE(ABNF)[[[path_segment]]]] のおまけ扱いです。
もっとも、 1808 までは URI の一番最後の [CODE(ABNF)[[[query]]]]
直前だけが[RUBY[引数][パラメーター]]だったのが、 2396 では
[CODE(ABNF)[path]] 内のどの [CODE(ABNF)[segment]]
にもつけれるようになったという意味では進化しています。
]HISTORY]
* 文脈
[4] 次の場面で使われています。
[FIG(short list)[
- [CODE(URI)@en[ftp:]]
]FIG]
* 歴史
[FIG(quote[
[FIGCAPTION[
[9] RFC 1808 (相対 URL) 2.4.5. Parsing the Parameters
]FIGCAPTION]
> If the parse string contains a semicolon ";" character, then the
substring after the first (left-most) semicolon ";" and up to the end
of the parse string is the parameters (<params>). If the semicolon
is the last character, or no semicolon is present, then <params> is
empty. The matched substring, including the semicolon character, is
removed from the parse string before continuing.
解析文字列がセミコロン [CODE(char)[;]]
文字を含んでいるなら、最初の (最左の) セミコロン
[CODE(URI)[;]] の後から解析文字列の最後までは引数
([CODE[<params>]]) です。
セミコロンが最後の文字であるか、セミコロンが現れないなら、
[CODE[<params>]] は空です。
一致した部分文字列は、セミコロンも含めて、続行する前に解析文字列から削除します。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[10] RFC 2396 (URI) 3.3 抜粋
]FIGCAPTION]
>Each path segment may include a sequence of parameters, indicated by the semicolon ";" character. The parameters are not significant to the parsing of relative references.
各経路 segment は引数の列を含めることができまして、
これはセミコロン [CODE(URI)[;]] 文字で示します。
引数は相対 URI の解析には意味を持ちません。
]FIG]
[8] [CITE@en[84409 – URL: relative URLs break if if base URL has ";" character]]
( ([TIME[2016-06-12 00:25:31 +09:00]]))
<https://bugzilla.mozilla.org/show_bug.cgi?id=84409>
[7] [CITE@en[448141 – Unable to open file with special characters in file:// ftp:// listing (";", semicolon, in file name)]]
( ([TIME[2016-06-12 00:25:09 +09:00]]))
<https://bugzilla.mozilla.org/show_bug.cgi?id=448141>