mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Ensure string type for urlencode()
This commit is contained in:
parent
837749d471
commit
7293151d82
|
|
@ -412,7 +412,7 @@ if ($sql_select) {
|
|||
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
$param = "&socid=".urlencode($socid)."&type_element=".urlencode($type_element);
|
||||
$param = "&socid=".urlencode((string) ($socid))."&type_element=".urlencode((string) ($type_element));
|
||||
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
|
||||
$param .= '&contextpage='.urlencode($contextpage);
|
||||
}
|
||||
|
|
@ -426,10 +426,10 @@ if ($sql_select) {
|
|||
$param .= "&sref=".urlencode($sref);
|
||||
}
|
||||
if ($month) {
|
||||
$param .= "&month=".urlencode($month);
|
||||
$param .= "&month=".urlencode((string) ($month));
|
||||
}
|
||||
if ($year) {
|
||||
$param .= "&year=".urlencode($year);
|
||||
$param .= "&year=".urlencode((string) ($year));
|
||||
}
|
||||
if ($optioncss) {
|
||||
$param .= '&optioncss='.urlencode($optioncss);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user