Skip to content

Commit

Permalink
sanitizer var_memotri avant de l'utiliser (G0uz)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerdic committed Apr 8, 2019
1 parent 4c3322d commit 824d17f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ecrire/inc_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@
if (!function_exists('session_set')) {
include_spip('inc/session');
}
session_set($t, _request($t));
$t = preg_replace(",\W,","_", $t);
if ($v = _request($t)) {
session_set($t, $v);
}
}

/**
Expand Down

0 comments on commit 824d17f

Please sign in to comment.