| 1374 |
#ja |
#ja |
| 1375 |
利用者エージェントが文字列から<dfn id=strip-line-breaks>改行を除去</dfn>する場合、 |
利用者エージェントが文字列から<dfn id=strip-line-breaks>改行を除去</dfn>する場合、 |
| 1376 |
当該文字列から U+000A LINE FEED (LF) 文字と |
当該文字列から U+000A LINE FEED (LF) 文字と |
|
U+000D CARRIAGE RETURN (CR) 文字を削除し[[MUST:なければなりません]]。 |
|
| 1377 |
|
U+000D CARRIAGE RETURN (CR) 文字を削除し[[MUST:なければなりません]]。 |
| 1378 |
|
|
| 1379 |
|
#en |
| 1380 |
|
The <dfn id=codepoint-length>codepoint length</dfn> of a string is the number of |
| 1381 |
|
Unicode codepoints in that string. |
| 1382 |
|
#ja |
| 1383 |
|
文字列の<dfn id=codepoint-length>符号位置長</dfn>は、当該文字列中の Unicode |
| 1384 |
|
符号位置の数です。 |
| 1385 |
|
|
| 1386 |
|
|
| 1387 |
|
#en |
| 1388 |
|
A string is a <dfn id=valid-floating-point-number>valid floating point number</dfn> if it |
| 1389 |
|
consists of: |
| 1390 |
|
#ja |
| 1391 |
|
文字列は、それが次のものから構成される場合、<dfn id=valid-floating-point-number>妥当な浮動小数点数</dfn>です。 |
| 1392 |
|
|
| 1393 |
|
#en |
| 1394 |
|
Optionally, a U+002D HYPHEN-MINUS ("-") character. |
| 1395 |
|
#ja |
| 1396 |
|
U+002D HYPHEN-MINUS ("-") 文字 (任意選択)。 |
| 1397 |
|
|
| 1398 |
|
#en |
| 1399 |
|
A series of one or more characters in the range U+0030 DIGIT |
| 1400 |
|
ZERO (0) to U+0039 DIGIT NINE (9). |
| 1401 |
|
#ja |
| 1402 |
|
範囲 U+0030 DIGIT |
| 1403 |
|
ZERO (0) ~ U+0039 DIGIT NINE (9) の文字1文字以上の列。 |
| 1404 |
|
|
| 1405 |
|
#en |
| 1406 |
|
Optionally: |
| 1407 |
|
#ja |
| 1408 |
|
任意選択で、 |
| 1409 |
|
|
| 1410 |
|
#en |
| 1411 |
|
A single U+002E FULL STOP (".") character. |
| 1412 |
|
#ja |
| 1413 |
|
単一の U+002E FULL STOP (".") 文字。 |
| 1414 |
|
|
| 1415 |
|
#en |
| 1416 |
|
A series of one or more characters in the range U+0030 DIGIT |
| 1417 |
|
ZERO (0) to U+0039 DIGIT NINE (9). |
| 1418 |
|
#ja |
| 1419 |
|
範囲 U+0030 DIGIT |
| 1420 |
|
ZERO (0) ~ U+0039 DIGIT NINE (9) の文字1文字以上の列。 |
| 1421 |
|
|
| 1422 |
|
#en |
| 1423 |
|
Either a U+0065 LATIN SMALL LETTER E character or a U+0045 |
| 1424 |
|
LATIN CAPITAL LETTER E character. |
| 1425 |
|
#ja |
| 1426 |
|
U+0065 LATIN SMALL LETTER E 文字か、 U+0045 |
| 1427 |
|
LATIN CAPITAL LETTER E 文字のいずれか。 |
| 1428 |
|
|
| 1429 |
|
#en |
| 1430 |
|
A series of characters in the range U+0030 DIGIT ZERO (0) to |
| 1431 |
|
U+0039 DIGIT NINE (9). |
| 1432 |
|
#ja |
| 1433 |
|
範囲 U+0030 DIGIT ZERO (0) ~ |
| 1434 |
|
U+0039 DIGIT NINE (9) の文字の列。 |
| 1435 |
|
|
| 1436 |
|
#en |
| 1437 |
|
If <var title="">n</var> is 4 or more, and the first bytes of |
| 1438 |
|
the resource match one of the following byte sets: |
| 1439 |
|
#ja |
| 1440 |
|
<var title="">n</var> が 4 以上であり、資源の最初の数バイトが次のバイト集合のいずれかに一致する場合、 |
| 1441 |
|
|
| 1442 |
|
#en |
| 1443 |
|
Description |
| 1444 |
|
#ja |
| 1445 |
|
説明 |
| 1446 |
|
|
| 1447 |
|
#en |
| 1448 |
|
...then the sniffed type of the resource is "text/plain". Abort |
| 1449 |
|
these steps. |
| 1450 |
|
#ja |
| 1451 |
|
資源の探知型は「text/plain」です。これらの段階を停止します。 |
| 1452 |
|
|
| 1453 |
|
#en |
| 1454 |
|
If none of the first <var title="">n</var> bytes of the |
| 1455 |
|
resource are <a href=#binary-data-bytes>binary data bytes</a> then the sniffed type |
| 1456 |
|
of the resource is "text/plain". Abort these steps. |
| 1457 |
|
#ja |
| 1458 |
|
資源の最初の <var title="">n</var> バイトのいずれもが<a href=#binary-data-bytes>バイナリー・データ・バイト</a>でない場合、 |
| 1459 |
|
資源の探知型は「text/plain」です。これらの段階を停止します。 |
| 1460 |
|
|
| 1461 |
|
#en |
| 1462 |
|
If the first bytes of the resource match one of the byte |
| 1463 |
|
sequences in the "pattern" column of the table in the <i title="content-type sniffing: unknown type"><a href=#content-type-sniffing:-unknown-type>unknown type</a></i> |
| 1464 |
|
section below, ignoring any rows whose cell in the "security" |
| 1465 |
|
column says "scriptable" (or "n/a"), then the sniffed type of the |
| 1466 |
|
resource is the type given in the corresponding cell in the |
| 1467 |
|
"sniffed type" column on that row; abort these steps. |
| 1468 |
|
#ja |
| 1469 |
|
資源の最初のバイトが、 |
| 1470 |
|
後の<i title="content-type sniffing: unknown type"><a href=#content-type-sniffing:-unknown-type>未知型</a></i>の節の表のうち、 |
| 1471 |
|
「保安性」の列がのこまが「スクリプト可能」 (か「N/A」) となっている行以外で、 |
| 1472 |
|
「パターン」の列のバイト列のいずれかと一致する場合、 |
| 1473 |
|
資源の探知型は、その行の「探知型」の列の対応するこまで与えられた型です。 |
| 1474 |
|
これらの段階を停止します。 |
| 1475 |
|
|
| 1476 |
|
|
| 1477 |
|
#en |
| 1478 |
|
It is critical that this step not ever return a |
| 1479 |
|
scriptable type (e.g. text/html), as otherwise that would allow a |
| 1480 |
|
privilege escalation attack. |
| 1481 |
|
#ja |
| 1482 |
|
この段階でスクリプト可能な型 (例えば text/html) を返さないことは重要であり、 |
| 1483 |
|
そうしなければ特権昇格攻撃を認めることになってしまいます。 |
| 1484 |
|
|
| 1485 |
|
#en |
| 1486 |
|
Otherwise, the sniffed type of the resource is |
| 1487 |
|
"application/octet-stream". |
| 1488 |
|
#ja |
| 1489 |
|
そうでない場合、資源の探知型は「application/octet-stream」です。 |
| 1490 |
|
|
| 1491 |
|
#en |
| 1492 |
|
Bytes covered by the following ranges are <dfn id=binary-data-bytes>binary data |
| 1493 |
|
bytes</dfn>: |
| 1494 |
|
#ja |
| 1495 |
|
次の範囲に含まれるバイトが<dfn id=binary-data-bytes>バイナリー・データ・バイト</dfn>です。 |
| 1496 |
|
|
| 1497 |
|
#pattern |
| 1498 |
|
<span class=secno>* </span><dfn>Content-Type sniffing: unknown type</dfn> |
| 1499 |
|
#ja |
| 1500 |
|
<span class=secno>$1 </span><dfn>Content-Type 探知: 未知型</dfn> |
| 1501 |
|
|
| 1502 |
|
#en |
| 1503 |
|
The user agent may wait for 512 or more bytes of the |
| 1504 |
|
resource to be available. |
| 1505 |
|
#ja |
| 1506 |
|
利用者エージェントは、資源の 512 バイト以上が利用可能となるまで待って[[MAY:構いません]]。 |