René's URL Explorer Experiment


Title: fix(schematics): escape values interpolated into generated Data Connect provider code by herdiyana256 · Pull Request #3727 · angular/angularfire · GitHub

Open Graph Title: fix(schematics): escape values interpolated into generated Data Connect provider code by herdiyana256 · Pull Request #3727 · angular/angularfire

X Title: fix(schematics): escape values interpolated into generated Data Connect provider code by herdiyana256 · Pull Request #3727 · angular/angularfire

Description: featureToRules's DataConnect case builds the generated provideDataConnect(...) call from two values read out of the project's own dataconnect.yaml/connector.yaml: config.package (passed as a module specifier to addRootProvider's external()) and the connectorConfig object's location/connector/service strings, interpolated directly into a double-quoted object literal (\${key}: "\${value}"). Neither was validated or escaped, so a value containing a quote character breaks out of its string literal and lands arbitrary source in the project's generated provider file. Confirmed with the exact two expressions from utils.ts: a connectorConfig.location of us-central1"; console.log("INJECTED"); const _z="x produced `getDataConnect({location: "us-central1"; console.log("INJECTED"); const _z="x",...})`` — a live statement, not an unusual string value. config.package is now checked against a conservative allow-list pattern (rejects quotes, backslashes, newlines) before being used as a module specifier, falling back to the connectorConfig object form otherwise. The connectorConfig values are now serialized with JSON.stringify instead of raw string interpolation, which also fixes a pre-existing as ConnectorConfig cast that assumed connectorConfig was always defined whenever package was falsy (it isn't — both are set together or neither is, per parseDataConnectConfig). Related but separate PR for a different sink in the same general area: #3726 (the deploy schematic's Cloud Run gcloud invocation). npx tsc --noEmit and npx eslint src/schematics/utils.ts both pass clean. Note on the import changes in utils.ts: adding the spec file means utils.ts is loaded as an ES module for the first time, and Node's ESM resolver requires fully specified paths. The @angular-devkit/schematics/tasks and ./common imports therefore need their explicit .js/index.js suffixes, matching the convention update/v21/index.ts already follows for the same reason. Without them the suite fails only at test time, so please keep them if you are tidying imports in this file.

Open Graph Description: featureToRules's DataConnect case builds the generated provideDataConnect(...) call from two values read out of the project's own dataconnect.yaml/connector.yaml: config.package (passed as ...

X Description: featureToRules's DataConnect case builds the generated provideDataConnect(...) call from two values read out of the project's own dataconnect.yaml/connector.yaml: config.package (pa...

Opengraph URL: https://github.com/angular/angularfire/pull/3727

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1bbe5d2b-b455-d1ed-479e-b46c5daa526b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7AC:1DA36E:1128CBA:15E6E7D:6B03C764
html-safe-noncee1bafb8f7b086a569f1d0a5960c36632db0b23323152130dffb53263599c6346
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0FDOjFEQTM2RToxMTI4Q0JBOjE1RTZFN0Q6NkIwM0M3NjQiLCJ2aXNpdG9yX2lkIjoiNDA3NDY2NjQ5ODA1OTM4ODc3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd69540aae917e30c1100f76716085da9fc2f2896110b2728984aae4b59a6ddce
hovercard-subject-tagpull_request:4180271316
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3727/files
twitter:imagehttps://avatars.githubusercontent.com/u/82978131?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/82978131?s=400&v=4
og:image:altfeatureToRules's DataConnect case builds the generated provideDataConnect(...) call from two values read out of the project's own dataconnect.yaml/connector.yaml: config.package (passed as ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angularfire/pull/3727/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3727%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F3727%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/pull/3727/files
Reloadhttps://github.com/angular/angularfire/pull/3727/files
Reloadhttps://github.com/angular/angularfire/pull/3727/files
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
armando-navarrohttps://github.com/armando-navarro
angular:mainhttps://github.com/angular/angularfire/tree/main
herdiyana256:fix-dataconnect-codegen-injectionhttps://github.com/herdiyana256/angularfire/tree/fix-dataconnect-codegen-injection
Conversation 5 https://github.com/angular/angularfire/pull/3727
Commits 5 https://github.com/angular/angularfire/pull/3727/commits
Checks 24 https://github.com/angular/angularfire/pull/3727/checks
Files changed https://github.com/angular/angularfire/pull/3727/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3727/files
fix(schematics): escape values interpolated into generated Data Connect provider code https://github.com/angular/angularfire/pull/3727/files#top
Show all changes 5 commits https://github.com/angular/angularfire/pull/3727/files
9046fad fix(schematics): escape values interpolated into generated Data Conne… herdiyana256 Jul 31, 2026 https://github.com/angular/angularfire/pull/3727/commits/9046fad6f770ca0193b36c35fc4443ed68a6547c
9970536 fix(schematics): preserve string typing and add tests for DataConnect… herdiyana256 Aug 4, 2026 https://github.com/angular/angularfire/pull/3727/commits/99705360b7f90cf0a5b3a3cf2f0a12842a153f94
8b24f71 Merge branch 'main' into fix-dataconnect-codegen-injection herdiyana256 Aug 4, 2026 https://github.com/angular/angularfire/pull/3727/commits/8b24f7194da3fe4e8af94f569a324bb34afdee2d
4c48d85 Merge branch 'main' into fix-dataconnect-codegen-injection herdiyana256 Aug 7, 2026 https://github.com/angular/angularfire/pull/3727/commits/4c48d85258808ee84ffc9e18bebe751628fce960
d8ec23d Merge branch 'main' into fix-dataconnect-codegen-injection herdiyana256 Aug 15, 2026 https://github.com/angular/angularfire/pull/3727/commits/d8ec23dd7209a5a482717dacba4a7a143d40acd2
Clear filters https://github.com/angular/angularfire/pull/3727/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3727/files
Please reload this pagehttps://github.com/angular/angularfire/pull/3727/files
utils.jasmine.ts https://github.com/angular/angularfire/pull/3727/files#diff-943a60a3eac3cb1ffda256953fa15b6985a37dd4f862ef33c97750a5bfbb297e
utils.ts https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
src/schematics/utils.jasmine.tshttps://github.com/angular/angularfire/pull/3727/files#diff-943a60a3eac3cb1ffda256953fa15b6985a37dd4f862ef33c97750a5bfbb297e
View file https://github.com/herdiyana256/angularfire/blob/d8ec23dd7209a5a482717dacba4a7a143d40acd2/src/schematics/utils.jasmine.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3727/{{ revealButtonHref }}
src/schematics/utils.tshttps://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
View file https://github.com/herdiyana256/angularfire/blob/d8ec23dd7209a5a482717dacba4a7a143d40acd2/src/schematics/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/3727/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
https://github.com/angular/angularfire/pull/3727/files#diff-297225bd8335b4c1fb89f3fc9f39dc1c88db7448eec5e028554c78fdda3dda03
Please reload this pagehttps://github.com/angular/angularfire/pull/3727/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.