fix for bug 570: now it is prevented that umlauts or other special characters are...
authorRupert Germann <rupi@gmx.li>
Thu, 28 Apr 2005 10:21:16 +0000 (10:21 +0000)
committerRupert Germann <rupi@gmx.li>
Thu, 28 Apr 2005 10:21:16 +0000 (10:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@684 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_menu.php

index 281b3b5..d5e9045 100755 (executable)
@@ -1347,7 +1347,7 @@ class tslib_menu {
                $titleLen = strlen($title);
                for ($a=0;$a<$titleLen;$a++)    {
                        $key = strtoupper(trim(substr($title,$a,1)));
-                       if ($key && !isset($GLOBALS['TSFE']->accessKey[$key]))  {
+                       if (preg_match('/[a-zA-Z]/', $key) && !isset($GLOBALS['TSFE']->accessKey[$key]))        {
                                $GLOBALS['TSFE']->accessKey[$key]=1;
                                $result['code'] = ' accesskey="'.$key.'"';
                                $result['alt'] = ' (ALT+'.$key.')';