Page 1 of 1

Replace spaces in <base href> tag (Joomla 1.5 and 1.6)

Posted: Sat Dec 12, 2009 4:40 pm
by bendix
Short Description
This is for HTML validation only and is a very simple request.

The code from /libraries/joomla/document/html/renderer/head.php

Code: Select all

$strHtml .= $tab.'<base href="'.$document->getBase().'" />'.$lnEnd;
Must be

Code: Select all

$strHtml .= $tab.'<base href="'.str_replace(' ','%20',$document->getBase()).'" />'.$lnEnd;
I know that is not necessary for joomla, but I have another systems integrated in joomla and some of this use parameters with spaces in url and getBase returns this spaces in <base> tag.
<base href=" Dornei-ln1.html" />
where "Vatra Dornei" is an argument for a parameter that is used in system integrated by me.

Sorry for my english