Home Dashboard Directory Help
Search

Powershell should check the name of parameters (and aliases) by Derp McDerp


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 808282
Opened: 11/11/2013 1:43:08 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Powershell seems to allow weird names in parameters:

function foo(${-$abc `t`nweird}) {}

help foo

I think scriptblock creation code should sanitize the parameter names (and parameter alias names) and fail to create the function if it doesn't match a restricted whitelist.
Details
Sign in to post a comment.
Sign in to post a workaround.