🐛 Fixed a gscan bug that was causing Ghost to throw http 500s.

refs https://github.com/TryGhost/Team/issues/864

- gscan was breaking when parsing double-quoted helpers like `{{"pagination"}}`.
- re-used a function to convert StringLiterals to PathExpressions, which fixes the issue.
This commit is contained in:
Thibaut Patel 2021-07-09 11:06:59 +02:00
parent 2ffad75b9d
commit 92b55b7b01
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@
"ghost-storage-base": "0.0.4",
"glob": "7.1.7",
"got": "9.6.0",
"gscan": "4.1.1",
"gscan": "4.1.2",
"html-to-text": "5.1.1",
"image-size": "1.0.0",
"intl": "1.2.5",

View File

@ -4673,10 +4673,10 @@ grunt@1.4.1:
nopt "~3.0.6"
rimraf "~3.0.2"
gscan@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.1.1.tgz#3f0f5e356587ced3246aff8b7348ffec994c1e06"
integrity sha512-iWBr10WGGYDh9oN6Hkiwv6Y7myvVQXujZYBbHJWFLLOqJqyFJMdPfJXlT+/wXHUwKq63uCNy2Ks/MPoEjRrAOg==
gscan@4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/gscan/-/gscan-4.1.2.tgz#3eea1871bf8508fde6cac61943246a5161730a46"
integrity sha512-h5wLwblg9e0lfCRjIhUhMjHQrj9B3FRNLcHyrrq+taxfF/+xaTXwfn3JWBRPO39DuosFY4nmcNEpj30RV/OH7A==
dependencies:
"@sentry/node" "6.8.0"
"@tryghost/pretty-cli" "1.2.18"