-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict between content blocks #100
Comments
Closed
jtwebman
added a commit
to jtwebman/express-hbs
that referenced
this issue
Aug 27, 2018
Fixed TryGhost#144 registerAsyncHelper using the wrong replace call Fixes TryGhost#143 Update handlebars to 4.0.8 (did latest handlebars) Fixed TryGhost#101 Cached blocks should be stored per request Fixed TryGhost#100 Conflict between content blocks Fixed TryGhost#99 Blocks prone to memory leaks After digging round most of the weekend I fixed the block and sync cache issues by storing them on the options which is setup once per request and passed to everything that needed it. This also fixes the issue with using replace and special strings that can do funny things with JavaScript replace vs using the function version. I also update TravisCI to run the newer node versions for tests and update all the dependencies to the latest versions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If two content blocks share the same name, or a content block on a page could contain request sensitive information, then the incorrect html content could be served to a user if the server is processing 2 separate requests asynchronously.
e.g.
The text was updated successfully, but these errors were encountered: