Skip to content

Commit

Permalink
0.3.6 with [vulnerability][acl] Fix #318 Check extensions for Worker/…
Browse files Browse the repository at this point in the history
…ShareWorker URLs
  • Loading branch information
t2ym committed Aug 28, 2019
1 parent aef432d commit b7ece1d
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 36 deletions.
46 changes: 23 additions & 23 deletions demo/cache-bundle.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/empty-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<html>
<head>
<meta charset="utf-8">
<script src="../../thin-hook/hook.min.js?no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,log-no-hook-authorization"></script>
<script src="../../thin-hook/hook.min.js?no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,log-no-hook-authorization"></script>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
<script context-generator src="bootstrap.js?no-hook=true"></script>
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<script src="../../thin-hook/hook.min.js?version=497&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,a578e741369d927f693fedc88c75b1a90f1a79465e2bb9774a3f68ffc6e011e6,log-no-hook-authorization&sw-root=/&no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&service-worker-ready=false"></script></head></html>
<script src="../../thin-hook/hook.min.js?version=497&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,a578e741369d927f693fedc88c75b1a90f1a79465e2bb9774a3f68ffc6e011e6,log-no-hook-authorization&sw-root=/&no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&service-worker-ready=false"></script></head></html>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="disable-devtools.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
Expand Down Expand Up @@ -48,7 +48,7 @@
};
}
</script>
<script context-generator src="cache-bundle.js?no-hook=true&authorization=c3859b2687e4890ebac43a8123b2cf432fe0b8d32ae88dd88afd07ed87b7a322"></script>
<script context-generator src="cache-bundle.js?no-hook=true&authorization=b57750be7af600f434b463dbad0da6d0b04d809602d8600f17ca4973e650caea"></script>
<script src="hook-callback.js?no-hook=true"></script>
<script context-generator src="script-hashes.js?no-hook=true&service-worker-ready=false"></script><!--<C!-- end of mandatory no-hook scripts --C>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions demo/no-hook-authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ else {
// hook.parameters.noHookAuthorizationFailed
// JSONs are output to console in the learning mode
//'*': true,
"bf78d2fa51c73e1baf623414df0b7b94981d28358939daacceecd3351ae70f01": true, // hook.min.js
"d7c933e8ceb6123420a8f0392650c5135f71f08dd548b955e43288722f5ad32c": true, // hook.min.js
"a81209228209941097ac41c5bda3bc1cd64375e69b7c8113aff68c2fe6729ff2": true, // demo/disable-devtools.js
"4374ae1f28cec2b969ab488895a4266244d65e28e1f82728fd2cd39130fe0d9e": true, // demo/context-generator.js
"4ea3e59399ae8288d6f12e68c1d31a792662e12c3fc666d08dbdfdfc914b0091": true, // demo/bootstrap.js
"3c560b4a219e404fb65d126279fdba92fcf87e10f6b97207b88eff2aa29c78fa": true, // demo/hook-callback.js
"96981c02ee9d290b852fee206fef6f98335d1db75588bf2d06b579e67b2caf4e": true, // demo/hook-callback.js
"0979646683bec9b9682d974d549effb61b1fc981ad87dac76d44d0440d87b396": true, // demo/hook-native-api.js
"5b615aa885a0518466153be6ecb2cfeef1300f181ff60ca91cad964659c92052": true, // demo/hook-worker.js
"0274c19e7a74df850e155ffb0fb1bfb0a9884d7d970b43366bb0530ce842136c": true, // demo/cache-bundle.js
Expand Down
4 changes: 2 additions & 2 deletions demo/original-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<script src="../../thin-hook/hook.min.js?version=497&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,a578e741369d927f693fedc88c75b1a90f1a79465e2bb9774a3f68ffc6e011e6,log-no-hook-authorization&sw-root=/&no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&service-worker-ready=true"></script>
<script src="../../thin-hook/hook.min.js?version=497&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,a578e741369d927f693fedc88c75b1a90f1a79465e2bb9774a3f68ffc6e011e6,log-no-hook-authorization&sw-root=/&no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_uNpREdiC4aB1e_&compact=true&service-worker-ready=true"></script>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="disable-devtools.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
Expand Down Expand Up @@ -48,7 +48,7 @@
};
}
</script>
<script context-generator src="cache-bundle.js?no-hook=true&authorization=c3859b2687e4890ebac43a8123b2cf432fe0b8d32ae88dd88afd07ed87b7a322"></script>
<script context-generator src="cache-bundle.js?no-hook=true&authorization=b57750be7af600f434b463dbad0da6d0b04d809602d8600f17ca4973e650caea"></script>
<script src="hook-callback.js?no-hook=true"></script>
<script context-generator src="script-hashes.js?no-hook=true&service-worker-ready=false"></script><!-- end of mandatory no-hook scripts -->
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion demo/postHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(app) {
case 'text/html':
default:
res.send(`<html><head><!-- $hook$ is undefined error if these hook infrastructure scripts are not loaded -->
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,log-no-hook-authorization"></script>
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,log-no-hook-authorization"></script>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="disable-devtools.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
Expand Down
2 changes: 1 addition & 1 deletion demo/sub-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,log-no-hook-authorization"></script>
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,log-no-hook-authorization"></script>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
<script context-generator src='bootstrap.js?no-hook=true'></script>
Expand Down
2 changes: 1 addition & 1 deletion demo/sub-sub-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=1a451fcb1fda37f037bad7fe4a21a8d9ca363e271317ee7a2b04336d2a40dca5,log-no-hook-authorization"></script>
<script src="../../thin-hook/hook.min.js?no-hook=true&no-hook-authorization=e4b04642f94e9762a723ad423cf7f8da7f68bd3fa804ccff9e1cfd7dbba807be,log-no-hook-authorization"></script>
<script context-generator src="no-hook-authorization.js?no-hook=true"></script>
<script context-generator src="context-generator.js?no-hook=true"></script>
<script context-generator src='bootstrap.js?no-hook=true'></script>
Expand Down
2 changes: 1 addition & 1 deletion hook.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thin-hook",
"version": "0.3.5",
"version": "0.3.6",
"description": "Thin Hook Preprocessor",
"main": "hook.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/hook.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7ece1d

Please sign in to comment.