Project

General

Profile

Actions

Bug #17430

closed

The L parameter is not korrekt if you enter a nonexisting language

Added by Juraj Sulek over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-06-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have a site with the url "http://blabla/index.php". There are 2 languages. If i enter
"http://blabla/index.php?id=10&L=1" or L=2 or L=0 everything is ok but if i enter "http://blabla/index.php?id=10&L=1sometext" or
"http://blabla/index.php?id=10&L=124" the page 10 will be cached with L=0 but all links and the navigation will have als parameter the L from URL so on my site i have links
http://blabla/index.php?id=10&L=1robots.txt or
http://blabla/index.php?id=10&L=12345 ewen if the L=12345 not exists. (Just because someone has visited my page and has try to use this parameters and he has visited some pages which was not at that time in cache)

I have solved it with this patch:
file /typo3/sysext/cms/tslib/index_ts.php
after
------------------------------------------------------
// ***********************************
// Setting the internal var, sys_language_uid + locale settings
// ***********************************
$TSFE->settingLanguage();
$TSFE->settingLocale();
------------------------------------------------------
just insert
------------------------------------------------------
$_GET['L']=intval($_GET['L']);
$_POST['L']=intval($_POST['L']);
if($_GET['L']==0 || ($_GET['L']>0 && $TSFE->sys_page->sys_language_uid!=$_GET['L'])){unset($_GET['L']);}
if($_POST['L']==0 || ($_POST['L']>0 && $TSFE->sys_page->sys_language_uid!=$_POST['L'])){unset($_POST['L']);}
------------------------------------------------------

(issue imported from #M5878)

Actions #1

Updated by Oliver Hader over 17 years ago

This issue should be fixed in TYPO3 4.1.

Actions #2

Updated by Martin Kutschker over 17 years ago

Upgrade top 4.1 and use config.linkVars = L(1-2). See TSref

Actions

Also available in: Atom PDF