File tree Expand file tree Collapse file tree 7 files changed +20
-17
lines changed Expand file tree Collapse file tree 7 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,12 @@ scanner is set up correctly. These test files utilize [EICAR test
208
208
files] ( https://www.eicar.org/download-anti-malware-testfile/ ) , which contain a
209
209
totally harmless special character sequency detected by virus scanner.
210
210
211
- - [ ` test/data/validator/h5p-with-virus.h5p ` ] ( /test/data/validator/h5p-with-virus.h5p ) :
211
+ - [ ` test/data/validator/h5p-with-virus.h5p ` ] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release /test/data/validator/h5p-with-virus.h5p) :
212
212
contains an [ EICAR test
213
213
file] ( https://www.eicar.org/download-anti-malware-testfile/ ) (as an image);
214
214
upload this H5P package through the package upload functionality; you should see
215
215
an error message explaining that the malware scanner has found something
216
- - [ ` packages/h5p-clamav-scanner/test/eicar.png ` ] ( /packages/h5p-clamav-scanner/test/eicar.png ) :
216
+ - [ ` packages/h5p-clamav-scanner/test/eicar.png ` ] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release /packages/h5p-clamav-scanner/test/eicar.png) :
217
217
is an [ EICAR test
218
218
file] ( https://www.eicar.org/download-anti-malware-testfile/ ) ; upload this
219
219
image as a media file anywhere in the H5P editor; you should see an error
Original file line number Diff line number Diff line change @@ -83,5 +83,5 @@ DEBUG=h5p:* LOG_LEVEL=debug node script.js
83
83
84
84
## Other scripts
85
85
86
- Check out the many other npm scripts in [ package.json] ( /package.json ) for other
87
- development functionality.
86
+ Check out the many other npm scripts in ` package.json ` for other development
87
+ functionality.
Original file line number Diff line number Diff line change @@ -110,8 +110,9 @@ test` or other test calls. The reason is that the tests require a running
110
110
MongoDB and S3 instance and thus need more extensive setup. To manually execute
111
111
the tests call ` npm run test:h5p-mongos3 ` .
112
112
113
- To quickly get a functioning MongoDB instance, you can use the [ Docker
114
- Compose file in the scripts directory] ( /scripts/mongo-s3-docker-compose.yml )
113
+ To quickly get a functioning MongoDB instance, you can use the [ Docker Compose
114
+ file in the scripts
115
+ directory] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release/scripts/mongo-s3-docker-compose.yml )
115
116
like this (you obviously must install
116
117
[ Docker] ( https://docs.docker.com/engine/install/ ) and [ Docker
117
118
Compose] ( https://docs.docker.com/compose/install/ ) first):
Original file line number Diff line number Diff line change @@ -165,7 +165,8 @@ MongoDB and S3 instance and thus need more extensive setup. To manually execute
165
165
the tests call ` npm run test:h5p-mongos3 ` .
166
166
167
167
To quickly get a functioning MongoDB and S3 instance, you can use the [ Docker
168
- Compose file in the scripts directory] ( /scripts/mongo-s3-docker-compose.yml )
168
+ Compose file in the scripts
169
+ directory] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release/scripts/mongo-s3-docker-compose.yml )
169
170
like this (you obviously must install
170
171
[ Docker] ( https://docs.docker.com/engine/install/ ) and [ Docker
171
172
Compose] ( https://docs.docker.com/compose/install/ ) first):
Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ test` or other test calls. The reason is that the tests require a running
138
138
MongoDB and S3 instance and thus need more extensive setup. To manually execute
139
139
the tests call ` npm run test:h5p-mongos3 ` .
140
140
141
- To quickly get a functioning MongoDB instance, you can use the [ Docker
142
- Compose file in the scripts directory] ( /scripts/mongo-s3-docker-compose.yml )
141
+ To quickly get a functioning MongoDB instance, you can use the [ Docker Compose
142
+ file in the scripts
143
+ directory] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release/scripts/mongo-s3-docker-compose.yml )
143
144
like this (you obviously must install
144
145
[ Docker] ( https://docs.docker.com/engine/install/ ) and [ Docker
145
146
Compose] ( https://docs.docker.com/compose/install/ ) first):
Original file line number Diff line number Diff line change @@ -2471,8 +2471,8 @@ export enum MalwareScanResult {
2471
2471
2472
2472
/**
2473
2473
* An interface for malware scanners. See the
2474
- * [documentation](/ docs/advanced/security.md) for details on how to use this
2475
- * class.
2474
+ * { @link ../../ docs/advanced/security.md | documentation } for details on how
2475
+ * to use this class.
2476
2476
*/
2477
2477
export interface IFileMalwareScanner {
2478
2478
/** The name of the scanner, e.g. ClamAV */
Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ package might not be right for you.
82
82
## Testing whether SVGs are correctly sanitized
83
83
84
84
Get the [ `SVG XSS injection demo
85
- file`] ( / packages/h5p-svg-sanitizer/test/xss-svg.h5p) from the repo, upload it to
86
- your system and save. You should see a simple H5P Blanks activity with the image
87
- of a gray circle. Copy the URL of the image, paste it into your browser's
88
- address bar and load it. You should now _ NOT_ see a popup message which is
89
- caused by executing JavaScript code in the SVG. If you see the message,
90
- something is misconfigured.
85
+ file`] ( https://github.com/Lumieducation/H5P-Nodejs-library/blob/release/ packages/h5p-svg-sanitizer/test/xss-svg.h5p)
86
+ from the repo, upload it to your system and save. You should see a simple H5P
87
+ Blanks activity with the image of a gray circle. Copy the URL of the image,
88
+ paste it into your browser's address bar and load it. You should now _ NOT_ see a
89
+ popup message which is caused by executing JavaScript code in the SVG. If you
90
+ see the message, something is misconfigured.
You can’t perform that action at this time.
0 commit comments