Closed brendanheywood closed 4 years ago
Just had a thought, if we apply this as a blank rule there are probably a lot of files that we could safely server this way but won't. A more nuanced approach is we could do a once-off task inspect the content and check whether it contains any relative links. We'd need a handler for each content time we want to support, but a html dom parse is easy. Core also bundles lib/php-css-parser so css should be relatively easy.
@gleimermora to see a failing test, please review, tweak as needed and merge in this first:
Close as duplicate
eg if you have a scorm with html and css and they refer to each other with relative link these link will be broken when served from the signing domain
workaround, have a black list / white list of file types that can be served via signing
Tasks:
Bonus points:
example code to look at:
https://github.com/moodle/moodle/compare/master...Peterburnett:MDL-54716#diff-6ad5fe5e9e08da691d155d1adc252a68R5059-R5086