Obfuscated bugfix
This commit is contained in:
parent
5af3fe77c6
commit
49903b215e
@ -186,12 +186,15 @@ class ObfuscatedStream implements BufferedProxyStreamInterface
|
|||||||
*/
|
*/
|
||||||
public function setExtra($extra)
|
public function setExtra($extra)
|
||||||
{
|
{
|
||||||
if (isset($extra['secret']) && strlen($extra['secret']) > 17) {
|
if (isset($extra['secret'])) {
|
||||||
$extra['secret'] = hex2bin($extra['secret']);
|
if (strlen($extra['secret']) > 17) {
|
||||||
}
|
$extra['secret'] = hex2bin($extra['secret']);
|
||||||
if (isset($extra['secret']) && strlen($extra['secret']) == 17) {
|
}
|
||||||
$extra['secret'] = substr($extra['secret'], 0, 16);
|
if (strlen($extra['secret']) == 17) {
|
||||||
|
$extra['secret'] = substr($extra['secret'], 1, 16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->extra = $extra;
|
$this->extra = $extra;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user