[NOT BUG] Problem with special characters in meta title?
Posted: Thu May 24, 2007 6:56 am
Hi,
I've discovered some weird behaviour relating to the meta-title of generated pages. We have modified a number of components to have more informative dynamic page titles, and these have in the past worked fine (I think Joomla 1.0.8 was the last version we deployed on before 1.0.12), but now if we include a hyphen in the title data it seems to be escaped.
In the components I use code like this:
to set the page titles. Now, the hyphen seems to go missing and at least one of the spaces along with it. I found that if I backslash escape all the hyphens it works fine, but this wasn't previously required.
Maybe this is related to a similar issue I discovered previously with mosloadposition? ( http://forum.joomla.org/index.php/topic ... #msg568540 )
System info:
Joomla 1.0.12
Database version: mysql Ver 12.22 Distrib 4.0.25, for pc-linux-gnu (i686)
PHP version: PHP 4.3.2 (cgi)
Web server: Server version: Apache/2.0.46
Browser: Firefox 2 & IE7
Thanks for any feedback,
Ben.
I've discovered some weird behaviour relating to the meta-title of generated pages. We have modified a number of components to have more informative dynamic page titles, and these have in the past worked fine (I think Joomla 1.0.8 was the last version we deployed on before 1.0.12), but now if we include a hyphen in the title data it seems to be escaped.
In the components I use code like this:
Code: Select all
$GLOBALS['mainframe']->setPageTitle( "Some static text - " . $dynamicText );
Maybe this is related to a similar issue I discovered previously with mosloadposition? ( http://forum.joomla.org/index.php/topic ... #msg568540 )
System info:
Joomla 1.0.12
Database version: mysql Ver 12.22 Distrib 4.0.25, for pc-linux-gnu (i686)
PHP version: PHP 4.3.2 (cgi)
Web server: Server version: Apache/2.0.46
Browser: Firefox 2 & IE7
Thanks for any feedback,
Ben.