Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 5:58 am (All times are UTC )

 


Forum rules

Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
Posted: Thu Sep 13, 2007 3:16 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Mar 02, 2006 9:41 am
Posts: 216
Location: Santo Domingo, Dominican Republic
Description:
Fine tuning check to the 'site name' text field sanitizing mechanism as it prevent the use of quoted inoffensive site names.

Reported on:
Nightly Build 2007-09-13

Affected functions:
Installation script

Steps to replicate:
-Run installation script
-Choose as 'site name' any quoted inoffensive string, like "hello world"
-Proceed to complete installation process
-Check site name after first administration login (Global Configuration). Please note that '\' only appear on the text field; also check the site name displayed on browser.
-Edit site name to "hello world" again and save changes.
-Check browser title bar: "hello world"

System info:
Database Version: 5.0.45-log
Database Collation: utf8_general_ci
PHP Version: 5.1.4
Web Server: Apache
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.0 Production/Stable [ Endeleo ] 1-September-2007 15:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

_________________
Nicht mehr!
Los acentos en castellano omitidos intencionalmente. | Les accents et les signes en français omis intentionnellement.
http://bio.moisesjafet.com


Last edited by Robin on Thu Sep 13, 2007 6:08 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Sep 13, 2007 5:51 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Sep 21, 2005 9:25 am
Posts: 1542
Location: Thailand
Confirmed.  HTML comes up something like the following.
Code:
<title>&quot;Joomla Development&quot;</title>


The sitename is stored in the database configuration.php as expected, however.  This seems to be a rendering issue.

tcp

--edit

Tracked down the issues of quotes to JSite::getParams() ( line 226 ). 

Code:
$title       = $this->getCfg('sitename' );


In the configuration registry ( use JFactory::getConfig() ) the site name is encoded already.
Quote:
"Joomla Development"


I'm assuming that this is the expected behavior.  The title is later assigned to the document in JSite::dispatch ( line 121 ).
Code:
$document->setTitle( $params->get('page_title') );


One possible solution is to decode the page title before it is assigned to the document.

tcp

_________________
http://www.gmitc.biz/


Last edited by tcp on Thu Sep 13, 2007 6:11 pm, edited 1 time in total.

Top
   
 
Posted: Thu Sep 13, 2007 6:07 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
Q&T; marking as confirmed.

_________________
Regards Robin


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Quick reply

 



Who is online

Users browsing this forum: Makavetis and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group