mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 15:59:23 +01:00
fix to distinguish between entities (eg. ü) and accesskeys lik &Delete
This commit is contained in:
parent
6e17b96dd9
commit
95f9ac8504
@ -127,7 +127,8 @@ class html
|
|||||||
{
|
{
|
||||||
$lang = lang($lang);
|
$lang = lang($lang);
|
||||||
}
|
}
|
||||||
if (($accesskey = strstr($lang,'&')) && $accesskey[1] != ' ')
|
if (($accesskey = strstr($lang,'&')) && $accesskey[1] != ' ' &&
|
||||||
|
(($pos = strpos($accesskey,';')) === False || $pos > 5))
|
||||||
{
|
{
|
||||||
$lang_u = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$lang);
|
$lang_u = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$lang);
|
||||||
$lang = str_replace('&','',$lang);
|
$lang = str_replace('&','',$lang);
|
||||||
|
@ -768,7 +768,8 @@
|
|||||||
{
|
{
|
||||||
$label = lang($label);
|
$label = lang($label);
|
||||||
}
|
}
|
||||||
if (($accesskey = strstr($label,'&')) && $accesskey[1] != ' ' && $form_name != '')
|
if (($accesskey = strstr($label,'&')) && $accesskey[1] != ' ' && $form_name != '' &&
|
||||||
|
(($pos = strpos($accesskey,';')) === False || $pos > 5))
|
||||||
{
|
{
|
||||||
$label = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$label);
|
$label = str_replace('&'.$accesskey[1],'<u>'.$accesskey[1].'</u>',$label);
|
||||||
$label = $this->html->label($label,$form_name,$accesskey[1]);
|
$label = $this->html->label($label,$form_name,$accesskey[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user