Apply specCharsToASCII() not only to page name, but also path.
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 10 Nov 2005 12:32:44 +0000 (12:32 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 10 Nov 2005 12:32:44 +0000 (12:32 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@856 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index ca3068d..85f0cd7 100755 (executable)
                                array_shift($temp);
                        }
                        $len = t3lib_div::intInRange($this->config['config']['stat_titleLen'],1,100,20);
-                       $pageName = str_replace('[path]', preg_replace('/[^.[:alnum:]\/_-]/','_',$this->sys_page->getPathFromRootline($temp,$len)).'/' ,$pageName);
-                       $this->config['stat_vars']['pageName'] = $pageName;
+                       if ($this->config['config']['stat_apache_niceTitle'])   {
+                               $path = $this->csConvObj->specCharsToASCII($this->renderCharset,$this->sys_page->getPathFromRootline($temp,$len));
+                       } else {
+                               $path = $this->sys_page->getPathFromRootline($temp,$len);
+                       }
+                       $this->config['stat_vars']['pageName'] = str_replace('[path]', preg_replace('/[^.[:alnum:]\/_-]/','_',$path.'/',$pageName));
                }
 
                        // No cache
@@ -3769,4 +3773,4 @@ if (version == "n3") {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php'])       {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']);
 }
-?>
\ No newline at end of file
+?>