Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the RAR signature to match RAR specification #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions mimesniff.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1754,8 +1754,10 @@ algorithm</dfn>:


<tr>
<!-- RAR Legacy (up to 4.x) signature -->
<!-- https://www.rarlab.com/technote.htm#rarsign -->
<td>
52 61 72 20 1A 07 00
52 61 72 21 1A 07 00

<td>
FF FF FF FF FF FF FF
Expand All @@ -1767,8 +1769,32 @@ algorithm</dfn>:
<code>application/x-rar-compressed</code>

<td>
The string "<code>Rar </code>" followed by SUB BEL NUL, the RAR
archive signature.
The string "<code>Rar!</code>" followed by SUB BEL NUL, the RAR
4.x archive signature.



</table>


<tr>
<!-- RAR 5 signature -->
<!-- https://www.rarlab.com/technote.htm#rarsign -->
<td>
52 61 72 21 1A 07 01 00

<td>
FF FF FF FF FF FF FF FF

<td>
None.

<td>
<code>application/x-rar-compressed</code>

<td>
The string "<code>Rar!</code>" followed by SUB BEL SOH NUL, the
RAR 5.0 archive signature.



Expand Down