File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using Microsoft . WindowsAzure . Commands . Utilities . Common ;
16
- using System ;
17
- using System . Collections . Generic ;
18
16
using System . Management . Automation ;
19
17
20
18
namespace Microsoft . Azure . Commands . ActiveDirectory
@@ -64,6 +62,12 @@ public override void ExecuteCmdlet()
64
62
Paging = true ,
65
63
Mail = Mail
66
64
} ;
65
+ if ( ! string . IsNullOrEmpty ( options . SearchString ) )
66
+ {
67
+ //query string is wrapped with single quote. Escape is needed if it contains additional quote.
68
+ options . SearchString = options . SearchString . Replace ( "'" , "''" ) ;
69
+ }
70
+
67
71
68
72
ulong first = MyInvocation . BoundParameters . ContainsKey ( "First" ) ? this . PagingParameters . First : ulong . MaxValue ;
69
73
ulong skip = MyInvocation . BoundParameters . ContainsKey ( "Skip" ) ? this . PagingParameters . Skip : 0 ;
Original file line number Diff line number Diff line change 19
19
-->
20
20
## Upcoming Release
21
21
* Add correlationId logging for error scenarios
22
+ * Escaped single quote in parameter value of ` Get-AzADUser ` [ #11317 ]
22
23
23
24
## Version 1.12.0
24
25
* Fixed for null reference bug in ` Get-AzRoleAssignment `
You can’t perform that action at this time.
0 commit comments