Fix: Ensure string type for urlencode()

This commit is contained in:
MDW 2024-03-08 02:54:01 +01:00
parent 837749d471
commit 7293151d82
No known key found for this signature in database

View File

@ -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);