Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4041853
WindowsWrapper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
WindowsWrapper.php
View Options
<?php
namespace
Shellbox\Command
;
class
WindowsWrapper
extends
Wrapper
{
/**
* Windows should be the outermost wrapper because of its special quoting
*/
public
const
PRIORITY
=
80
;
public
function
wrap
(
Command
$command
)
{
// Windows Shell bypassed, but command run is "cmd.exe /C "{$cmd}"
// This solves some shell parsing issues, see T207248.
// This should be unnecessary in PHP 8.0+.
$command
->
unsafeCommand
(
'cmd /s /c "'
.
$command
->
getCommandString
()
.
'"'
);
$command
->
procOpenOptions
(
[
'bypass_shell'
=>
true
]
);
}
public
function
getPriority
()
{
return
self
::
PRIORITY
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 06:45 (13 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/a3/8fde17786ce99f4db4e9d1463434
Default Alt Text
WindowsWrapper.php (617 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment