[Typo3-dev] Bug in .htaccess?
Michael Stucki
mundaun at gmx.ch
Thu Apr 29 16:01:41 CEST 2004
Hi Karsten,
> This seems to be the case. At least the appended id is not used. Maybe
> I confuse this right now, and it appended &id=xyz, thinking that there
> *must* already be parameters present (which are usually, but not with
> simulateStatic).
Now that the Cebit is over, I'm sure you'll be able to try this patch:
--- cut ---
michael at home:~$ cat class.tslib_fe.php.diff
--- class.tslib_fe.php.bak Mon Apr 26 16:33:26 2004
+++ class.tslib_fe.php Thu Apr 29 15:49:23 2004
@@ -505,12 +505,13 @@
if (!$fI['path'] && $fI['file'] && substr($fI['file'],-5)=='.html') {
$parts = explode('.',$fI['file']);
$pCount = count($parts);
+ // Only overwrite $this->type and $this->id if they are not set already (check this for each variable separately)
if ($pCount>2) {
- $this->type = intval($parts[$pCount-2]);
- $this->id = $parts[$pCount-3];
+ if(!$this->type) $this->type = intval($parts[$pCount-2]);
+ if(!$this->id) $this->id = $parts[$pCount-3];
} else {
- $this->type = 0;
- $this->id = $parts[0];
+ if(!$this->type) $this->type = 0;
+ if(!$this->id) $this->id = $parts[0];
}
}
}
--- cut ---
> If this behaviour is still present, maybe it should go into
> bugs.typo3.org?
Yes, please :-)
- michael
--
Want support? Please read the list rules first: http://typo3.org/1438.0.html
More information about the TYPO3-dev
mailing list