Page 1 of 1

[NOT BUG] Problem with special characters in meta title?

Posted: Thu May 24, 2007 6:56 am
by ben-work
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:

Code: Select all

$GLOBALS['mainframe']->setPageTitle( "Some static text - " . $dynamicText );
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.

Re: Problem with special characters in meta title?

Posted: Thu May 24, 2007 11:42 pm
by ben-work
Sorry, this isn't a Joomla issue. I'd installed Joomsef, and although I'd disabled it I forgot about the system mambot - unpublish this and Joomla behaviour is the same as always. Will change the title to [NOT BUG], hope that's ok. Doh!

Re: [NOT BUG] Problem with special characters in meta title?

Posted: Sat Jan 26, 2008 8:47 pm
by user deleted
Moving to resolved