• Russ Cox's avatar
    mime: preserve unnecessary backslash escapes as literals · eac59508
    Russ Cox authored
    When MSIE sends a full file path (in "intranet mode"), it does not
    escape backslashes: "C:\dev\go\foo.txt", not "C:\\dev\\go\\foo.txt".
    
    No known MIME generators emit unnecessary backslash escapes
    for simple token characters like numbers and letters.
    
    If we see an unnecessary backslash escape, assume it is from MSIE
    and intended as a literal backslash. This makes Go servers deal better
    with MSIE without affecting the way they handle conforming MIME
    generators.
    
    Fixes #15664.
    
    Change-Id: Ia3b03b978317d968dc11b2f6de1df913c6bcbfcc
    Reviewed-on: https://go-review.googlesource.com/32175Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    eac59508
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...