@@ -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 >
@@ -149,6 +153,19 @@ <h2>Denied</h2>
149
153
console . error ( e )
150
154
} )
151
155
156
+ // outside of allowed dir, treated as unsafe
157
+ fetch ( joinUrlSegments ( base , '/unsafe.html' ) )
158
+ . then ( ( r ) => {
159
+ text ( '.unsafe-fetch-html-status' , r . status )
160
+ return r . text ( )
161
+ } )
162
+ . then ( ( data ) => {
163
+ text ( '.unsafe-fetch-html' , data )
164
+ } )
165
+ . catch ( ( e ) => {
166
+ console . error ( e )
167
+ } )
168
+
152
169
// outside of allowed dir with special characters #8498
153
170
fetch ( joinUrlSegments ( base , '/src/%2e%2e%2funsafe%2etxt' ) )
154
171
. then ( ( r ) => {
@@ -246,6 +263,19 @@ <h2>Denied</h2>
246
263
console . error ( e )
247
264
} )
248
265
266
+ // not imported before, outside of root, treated as unsafe
267
+ fetch ( joinUrlSegments ( base , joinUrlSegments ( '/@fs/' , ROOT ) + '/unsafe.html' ) )
268
+ . then ( ( r ) => {
269
+ text ( '.unsafe-fs-fetch-html-status' , r . status )
270
+ return r . text ( )
271
+ } )
272
+ . then ( ( data ) => {
273
+ text ( '.unsafe-fs-fetch-html' , data )
274
+ } )
275
+ . catch ( ( e ) => {
276
+ console . error ( e )
277
+ } )
278
+
249
279
// not imported before, outside of root, treated as unsafe
250
280
fetch (
251
281
joinUrlSegments (
0 commit comments