mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix #yogosha4539
This commit is contained in:
parent
c6e66d1651
commit
673e1fe5aa
|
|
@ -57,7 +57,9 @@ if (!empty($_SERVER['MAIN_SHOW_TUNING_INFO']))
|
|||
*/
|
||||
function testSqlAndScriptInject($val, $type)
|
||||
{
|
||||
$val=html_entity_decode($val, ENT_QUOTES); // So <svg onload='console.log("123")' become <svg onload='console.log("123")'
|
||||
$val = html_entity_decode($val, ENT_QUOTES); // So <svg onload='console.log("123")' become <svg onload='console.log("123")'
|
||||
$val = str_replace('%09', '', $val); // 'java%09script' is processed like 'javascript' (whatever is place of %09)
|
||||
|
||||
// TODO loop to decode until no more thing to decode ?
|
||||
|
||||
$inj = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user