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

Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Dec 12, 2009 4:10 pm

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

Postby bendix » Sat Dec 12, 2009 4:40 pm

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

Return to “Feature Requests - White Papers - Archived”

Who is online

Users browsing this forum: No registered users and 2 guests