function db_escape($value = "", $nullify = false)
{
global $db;
-
- $value = @html_entity_decode($value, ENT_QUOTES, $_SESSION['language']->encoding);
+
+ $value = @html_entity_decode($value, ENT_QUOTES, $_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding);
$value = html_specials_encode($value);
//reset default if second parameter is skipped
if ($clean)
$help_page_url = access_string($help_page_url, true);
- return htmlspecialchars($SysPrefs->help_base_url
+ return html_specials_encode(
+ $SysPrefs->help_base_url
.urlencode(strtr(ucwords($help_page_url), array(' '=>'', '/'=>'', '&'=>'And')))
- .'&ctxhelp=1&lang='.$country, ENT_QUOTES);
+ .'&ctxhelp=1&lang='.$country);
}
function send_css($css = '')
if ($value == _("Delete")) // Helper during implementation
$icon = ICON_DELETE;
return "<button type='submit' class='editbutton' name='"
- .htmlentities(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
+ .html_specials_encode(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
)))
."' value='1'" . ($title ? " title='$title'":" title='$value'")
. ($aspect ? " aspect='$aspect'" : '')
label_cell($myrow["abbr"]);
label_cell($myrow["name"]);
label_cell(($myrow["decimals"]==-1?_("User Quantity Decimals"):$myrow["decimals"]));
- $id = htmlentities($myrow["abbr"]);
+ $id = html_specials_encode($myrow["abbr"]);
inactive_control_cell($id, $myrow["inactive"], 'item_units', 'abbr');
edit_button_cell("Edit".$id, _("Edit"));
delete_button_cell("Delete".$id, _("Delete"));