chg: [test] Add test for #7214

pull/7222/head
Jakub Onderka 2021-03-18 20:10:04 +01:00
parent f74257670b
commit bd762ed092
1 changed files with 8 additions and 0 deletions

View File

@ -520,4 +520,12 @@ EOT;
$this->assertEquals('127.0.0.1', $complexTypeTool->refangValue($test, 'ip-src'));
}
}
// see #7214
public function testRefangKeepBackslashes(): void
{
$text = 'http://googlechromeupdater.twilightparadox.com/html?DVXNSTHORF=fd6f240590734406be3bd35ca3622ea0;GRIBOOZ0LN=a3bf23855b0b40dda08f709fabb60d32;\..\..\..\./mshtml,RunHTMLApplication';
$complexTypeTool = new ComplexTypeTool();
$this->assertEquals($text, $complexTypeTool->refangValue($text, 'url'));
}
}