Skip to content

Commit dc39c80

Browse files
authored
Merge pull request #25 from microsoftgraph/baywet-patch-1
- adds missing deltatoken for dollar sign addition
2 parents 650ddc1 + 1842f25 commit dc39c80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Adds missing delta token for OData query parameters dollar sign injection.
13+
1214
### Changed
1315

1416
## [0.0.5] - 2021-12-02

graph_odata_query_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewGraphODataQueryHandler() *GraphODataQueryHandler {
4747

4848
// NewGraphODataQueryHandlerWithOptions creates a new instance of GraphODataQueryHandler
4949
func NewGraphODataQueryHandlerWithOptions(options GraphODataQueryHandlerOptions) *GraphODataQueryHandler {
50-
replacementRegexp := "(?i)([^$])(count|expand|filter|format|orderby|search|select|skip|skiptoken|top)="
50+
replacementRegexp := "(?i)([^$])(count|deltatoken|expand|filter|format|orderby|search|select|skip|skiptoken|top)="
5151
return &GraphODataQueryHandler{
5252
regex: regexp.MustCompile(replacementRegexp),
5353
handlerOptions: options,

0 commit comments

Comments
 (0)