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

Locked
bendix
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)

Post by bendix » Sat Dec 12, 2009 4:40 pm

Short Description
This is for HTML validation only and is a very simple request.

What?
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;
Why?
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.
Example:
<base href="http://www.sitename.com/page-Vatra Dornei-ln1.html" />
where "Vatra Dornei" is an argument for a parameter that is used in system integrated by me.

Sorry for my english

Locked

Return to “Feature Requests - White Papers - Archived”