[TYPO3-core] RFC: Bug 4758: Page with doktype 3 (external URL) and e-mail as URL could be shown directly

Michael Stucki michael at typo3.org
Sun Feb 4 21:55:41 CET 2007


Hi Oliver,

I had to test this one really long...

> Set the link to the e-mail address directly ("mailto:...") instead of
> using "index.php?id=nnn". This offers also the possibility to use
> spam-protection.

Basically, the patch works: +1

However, during testing I wondered why it caused a fatal error on my setup.
What I found out was that my testsite was inside a submenu, and thus it was
started by the code on line 1246 of class.tslib_menu.php.

The problem there is that the new object is created but $this->parent_cObj
will not be copied. This should cause a random number of bugs (I'm sure
there are some reports about this in the bugtracker...).

I'm only creating a reference to $this->parent_cObj because the object is
only used for read access (no changes happen inside).

Olly, can you take over this new version, please?

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4758_v2.diff
Type: text/x-diff
Size: 2118 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070204/c979c5ea/attachment.bin 


More information about the TYPO3-team-core mailing list