Title: [2.6.0] Single quotes parsed literally · Issue #337 · phpdotenv/phpdotenv · GitHub
Open Graph Title: [2.6.0] Single quotes parsed literally · Issue #337 · phpdotenv/phpdotenv
X Title: [2.6.0] Single quotes parsed literally · Issue #337 · phpdotenv/phpdotenv
Description: Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues: foo='value with spaces' is now 'value with spaces' (was value with spaces) and is thus unquoted (as in: not surrounded by double quotes) lea...
Open Graph Description: Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues: foo='value with spaces' is now 'value with spaces' (was value with spaces) and is thus unquoted (as ...
X Description: Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues: foo='value with spaces' is now 'value with spaces' (was value with spaces) and is th...
Opengraph URL: https://github.com/phpdotenv/phpdotenv/issues/337
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[2.6.0] Single quotes parsed literally","articleBody":"Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues:\r\n\r\n`foo='value with spaces'` is now `'value with spaces'` (was `value with spaces`) and is thus unquoted (as in: not surrounded by double quotes) leading to an error:\r\n\r\n> PHP Fatal error: Uncaught Dotenv\\Exception\\InvalidFileException: Dotenv values containing spaces must be surrounded by quotes. in /.../vendor/vlucas/phpdotenv/src/Parser.php:7\r\n\r\nDue to this, the `$` character cannot be escaped properly anymore:\r\n\r\n- `foo='$bar'` is now `'$bar'` (was `$bar`)\r\n- `foo=\"\\$bar\"` is `\\$bar`\r\n- `foo=\"$bar\"` is `$bar` but this will lead to issues when `.env` is loaded e.g. in Bash which then tries to load a non-existing variable called `bar`","author":{"url":"https://github.com/mbrodala","@type":"Person","name":"mbrodala"},"datePublished":"2019-01-29T10:26:57Z","url":"https://github.com/phpdotenv/phpdotenv/issues/337"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6cef559d-f383-4555-c03c-0af92505fc0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F06:1FDCFC:1A63474:22B862A:6B067C45 |
| html-safe-nonce | 3a255885f4703b5fed354aa90b17596ffd5f5c1f4e0a2ab10900f031d393e1b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjA2OjFGRENGQzoxQTYzNDc0OjIyQjg2MkE6NkIwNjdDNDUiLCJ2aXNpdG9yX2lkIjoiMjQ4NjM3OTU4NjE3OTcyNjQwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5bee8d11ead809d2883c4e57554b72b29e4e0c4dc42106cf37b0ae796bd03342 |
| hovercard-subject-tag | issue:404221163 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpdotenv/phpdotenv/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4ed00eb6f53994897898c5409dab73c49e29a205c993f16b36d721e06d6b71e/phpdotenv/phpdotenv/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4ed00eb6f53994897898c5409dab73c49e29a205c993f16b36d721e06d6b71e/phpdotenv/phpdotenv/issues/337 |
| og:image:alt | Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues: foo='value with spaces' is now 'value with spaces' (was value with spaces) and is thus unquoted (as ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mbrodala |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/phpdotenv/phpdotenv git https://github.com/phpdotenv/phpdotenv.git |
| octolytics-dimension-user_id | 320763234 |
| octolytics-dimension-user_login | phpdotenv |
| octolytics-dimension-repository_id | 7769432 |
| octolytics-dimension-repository_nwo | phpdotenv/phpdotenv |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7769432 |
| octolytics-dimension-repository_network_root_nwo | phpdotenv/phpdotenv |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width