File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -231,5 +231,12 @@ Least Surprise Property:
231
231
"A developer (or code reviewer) familiar with HTML, CSS, and JavaScript, who
232
232
knows that contextual autoescaping happens should be able to look at a {{.}}
233
233
and correctly infer what sanitization happens."
234
+
235
+ As a consequence of the Least Surprise Property, template actions within an
236
+ ECMAScript 6 template literal are disabled by default.
237
+ Handling string interpolation within these literals is rather complex resulting
238
+ in no clear safe way to support it.
239
+ To re-enable template actions within ECMAScript 6 template literals, use the
240
+ GODEBUG=jstmpllitinterp=1 environment variable.
234
241
*/
235
242
package template
Original file line number Diff line number Diff line change @@ -9,6 +9,21 @@ Package multipart implements MIME multipart parsing, as defined in RFC
9
9
10
10
The implementation is sufficient for HTTP (RFC 2388) and the multipart
11
11
bodies generated by popular browsers.
12
+
13
+ # Limits
14
+
15
+ To protect against malicious inputs, this package sets limits on the size
16
+ of the MIME data it processes.
17
+
18
+ Reader.NextPart and Reader.NextRawPart limit the number of headers in a
19
+ part to 10000 and Reader.ReadForm limits the total number of headers in all
20
+ FileHeaders to 10000.
21
+ These limits may be adjusted with the GODEBUG=multipartmaxheaders=<values>
22
+ setting.
23
+
24
+ Reader.ReadForm further limits the number of parts in a form to 1000.
25
+ This limit may be adjusted with the GODEBUG=multipartmaxparts=<value>
26
+ setting.
12
27
*/
13
28
package multipart
14
29
You can’t perform that action at this time.
0 commit comments