[TYPO3-english] config.baseURL match

Christopher Torgalson bedlamhotel at gmail.com
Wed Jul 7 20:15:39 CEST 2010


Hi,

On Wed, Jul 7, 2010 at 9:16 AM, Victor Livakovsky <v-tyok at mail.ru> wrote:
> Hi
>
> I think, Sergio wants to use HTTP_HOST in config.baseURL - not in a
> condition.
>
> So, the solution should be this:
> baseURL.data = getIndpEnv : HTTP_HOST
>
> Cheers.

There are two problems with this:

1. config.baseURL does NOT have .stdWrap, so the above code simply
will not work [1], and

2. setting config.baseURL on the basis of the request may cause
security problems [2]

-- 
Christopher Torgalson
http://www.typo3apprentice.com/

[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/7/#id4213956
[2] http://www.justinml.com/mailing-lists/cms-typo3/typo3-dev-mailing-list/subject/mailing/typo3-dev-configbaseurl-lt-basetag-and-security/


More information about the TYPO3-english mailing list