Title: + (Plus) in URL parameter converted to %2B · Issue #3042 · angular/angular.js · GitHub
Open Graph Title: + (Plus) in URL parameter converted to + · Issue #3042 · angular/angular.js
X Title: + (Plus) in URL parameter converted to + · Issue #3042 · angular/angular.js
Description: The + character is valid in url query strings as a substitute for space or its hex-coded equivalent, . When Angular bootstraps, $LocationProvider.$get initializes $location. $location.$$parse uses parseKeyValue (from inside matchAppUR...
Open Graph Description: The + character is valid in url query strings as a substitute for space or its hex-coded equivalent, . When Angular bootstraps, $LocationProvider.$get initializes $location. $location.$$parse us...
X Description: The + character is valid in url query strings as a substitute for space or its hex-coded equivalent, . When Angular bootstraps, $LocationProvider.$get initializes $location. $location.$$parse us...
Mail addresses
notifications@github.comwrote
Opengraph URL: https://github.com/angular/angular.js/issues/3042
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"+ (Plus) in URL parameter converted to %2B","articleBody":"The `+` character is valid in url query strings as a substitute for space or its hex-coded equivalent, `%20`.\n\nWhen Angular bootstraps, `$LocationProvider.$get` initializes `$location`. `$location.$$parse` uses `parseKeyValue` (from inside `matchAppURL`) to decompose the query string into parameters. It calls the built-in `decodeURIComponent` which replaces hex escape sequences, but it does not replace `\"+\"` with space.\n\nAs a consequence, the plus character remains for `$location.$$compile` to encode as `%2B` which changes the unescaped, actual value of the parameter (as returned from `$location.search().paramName`) from `\"a b\"` to `\"a+b\"`. This is incorrect.\n\nThe `parseKeyValue` function should be changed to scan the decoded value for `'+'` and replace it with space. This function is also used for manipulation of `$location.search()`, and in that scenario, `'+'` replacement is not correct, so the change would need to be parameterized so that `'+'` is replaced when parsing a parameter from the browser and left alone when parsing a parameter from the application.\n\nVerified in angular 1.0.7 and 1.1.5.\n","author":{"url":"https://github.com/nlwillia","@type":"Person","name":"nlwillia"},"datePublished":"2013-06-24T19:50:31Z","url":"https://github.com/angular/angular.js/issues/3042"}
| 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:e4ef58ba-f8d2-337e-7760-596d73e00c0a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E358:18589F:18CCEB:21F66C:6AFE0681 |
| html-safe-nonce | 48d027fbca4d064770847ab06f5d98947e02a35866f272c37f845f101428dc2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzU4OjE4NTg5RjoxOENDRUI6MjFGNjZDOjZBRkUwNjgxIiwidmlzaXRvcl9pZCI6IjUzMzQ3MDA0MTExMDQxMzQ3ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f52bcce49cd3ca5223f383eda467325da520f5a2fc2d366feff0ca854c2ae141 |
| hovercard-subject-tag | issue:15943892 |
| 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/angular/angular.js/3042/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20f9508518c942550d7855f433b72f1e45b38c07ce9185b3d4ce82934e7c2490/angular/angular.js/issues/3042 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20f9508518c942550d7855f433b72f1e45b38c07ce9185b3d4ce82934e7c2490/angular/angular.js/issues/3042 |
| og:image:alt | The + character is valid in url query strings as a substitute for space or its hex-coded equivalent, . When Angular bootstraps, $LocationProvider.$get initializes $location. $location.$$parse us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nlwillia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 86d46ece7c3d9b0562692f81a135cb55ad6a1c82c93ab1ac874d2f1b46b28958 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| 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 | 5c18e6799976b7bc2f21178024289bb98edbcc85 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width