@@ -19,6 +19,8 @@ <h2>Safe Fetch Subdirectory</h2>
19
19
< h2 > Unsafe Fetch</ h2 >
20
20
< pre class ="unsafe-fetch-status "> </ pre >
21
21
< pre class ="unsafe-fetch "> </ pre >
22
+ < pre class ="unsafe-fetch-html-status "> </ pre >
23
+ < pre class ="unsafe-fetch-html "> </ pre >
22
24
< pre class ="unsafe-fetch-8498-status "> </ pre >
23
25
< pre class ="unsafe-fetch-8498 "> </ pre >
24
26
< pre class ="unsafe-fetch-8498-2-status "> </ pre >
@@ -39,6 +41,8 @@ <h2>Safe /@fs/ Fetch</h2>
39
41
< h2 > Unsafe /@fs/ Fetch</ h2 >
40
42
< pre class ="unsafe-fs-fetch-status "> </ pre >
41
43
< pre class ="unsafe-fs-fetch "> </ pre >
44
+ < pre class ="unsafe-fs-fetch-html-status "> </ pre >
45
+ < pre class ="unsafe-fs-fetch-html "> </ pre >
42
46
< pre class ="unsafe-fs-fetch-raw-status "> </ pre >
43
47
< pre class ="unsafe-fs-fetch-raw "> </ pre >
44
48
< pre class ="unsafe-fs-fetch-raw-query1-status "> </ pre >
@@ -142,6 +146,19 @@ <h2>Denied</h2>
142
146
console . error ( e )
143
147
} )
144
148
149
+ // outside of allowed dir, treated as unsafe
150
+ fetch ( joinUrlSegments ( base , '/unsafe.html' ) )
151
+ . then ( ( r ) => {
152
+ text ( '.unsafe-fetch-html-status' , r . status )
153
+ return r . text ( )
154
+ } )
155
+ . then ( ( data ) => {
156
+ text ( '.unsafe-fetch-html' , data )
157
+ } )
158
+ . catch ( ( e ) => {
159
+ console . error ( e )
160
+ } )
161
+
145
162
// outside of allowed dir with special characters #8498
146
163
fetch ( joinUrlSegments ( base , '/src/%2e%2e%2funsafe%2etxt' ) )
147
164
. then ( ( r ) => {
@@ -239,6 +256,19 @@ <h2>Denied</h2>
239
256
console . error ( e )
240
257
} )
241
258
259
+ // not imported before, outside of root, treated as unsafe
260
+ fetch ( joinUrlSegments ( base , joinUrlSegments ( '/@fs/' , ROOT ) + '/unsafe.html' ) )
261
+ . then ( ( r ) => {
262
+ text ( '.unsafe-fs-fetch-html-status' , r . status )
263
+ return r . text ( )
264
+ } )
265
+ . then ( ( data ) => {
266
+ text ( '.unsafe-fs-fetch-html' , data )
267
+ } )
268
+ . catch ( ( e ) => {
269
+ console . error ( e )
270
+ } )
271
+
242
272
// not imported before, outside of root, treated as unsafe
243
273
fetch (
244
274
joinUrlSegments (
0 commit comments