Skip to content

Commit

Permalink
Merge pull request #25 from microsoftgraph/baywet-patch-1
Browse files Browse the repository at this point in the history
- adds missing deltatoken for dollar sign addition
  • Loading branch information
baywet authored Dec 17, 2021
2 parents 650ddc1 + 1842f25 commit dc39c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Adds missing delta token for OData query parameters dollar sign injection.

### Changed

## [0.0.5] - 2021-12-02
Expand Down
2 changes: 1 addition & 1 deletion graph_odata_query_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewGraphODataQueryHandler() *GraphODataQueryHandler {

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

0 comments on commit dc39c80

Please sign in to comment.