Skip to content

Commit

Permalink
PoSHServer v3.6
Browse files Browse the repository at this point in the history
Fixed many bugs.. Please check release history.
  • Loading branch information
yusufozturk committed Mar 16, 2014
1 parent 1076c23 commit 0b3ec02
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
Binary file modified modules/PoSHServer/PoSHServer.ps1
Binary file not shown.
2 changes: 0 additions & 2 deletions modules/PoSHServer/modules/authentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# Basic Authentication
if ($BasicAuthentication -eq "On")
{
$Listener.AuthenticationSchemes = "Basic";
$Identity = $Context.User.Identity;
$PoSHUserName = $Identity.Name
$PoSHUserPassword = $Identity.Password
Expand All @@ -17,7 +16,6 @@ if ($BasicAuthentication -eq "On")
# Windows Authentication
if ($WindowsAuthentication -eq "On")
{
$Listener.AuthenticationSchemes = "IntegratedWindowsAuthentication";
$Identity = $Context.User.Identity;
$PoSHUserName = $Identity.Name
}
28 changes: 23 additions & 5 deletions modules/PoSHServer/modules/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,29 @@ param (
$Properties | Add-Member Noteproperty PoSHPostStream $PoSHPostStream
foreach ($Post in $PoSHCommand)
{
$Post = $Post.Replace("%26","&")
$Post = $Post.Split("=")
$PostName = $Post[0].Replace("%3D","=")
$PostValue = $Post[1].Replace("%3D","=")
$Properties | Add-Member Noteproperty $PostName $PostValue
$PostValue = $Post.Replace("%26","&")
$PostContent = $PostValue.Split("=")
$PostName = $PostContent[0].Replace("%3D","=")
$PostValue = $PostContent[1].Replace("%3D","=")

if ($PostName.EndsWith("[]"))
{
$PostName = $PostName.Substring(0,$PostName.Length-2)

if (!$Properties."$PostName")
{
$Properties | Add-Member NoteProperty $Postname (@())
$Properties."$PostName" = $PostValue
}
else
{
$Properties."$PostName" += $PostValue
}
}
else
{
$Properties | Add-Member NoteProperty $PostName $PostValue
}
}
Write-Output $Properties
}
Expand Down
Binary file modified packages/PoSHServer-Standalone.exe
Binary file not shown.
Binary file modified packages/PoSHServer-Standalone.ps1
Binary file not shown.

0 comments on commit 0b3ec02

Please sign in to comment.