Project

General

Profile

Actions

Bug #14950

closed

prefixLocalAnchorsWithScript should allow arbitrary data between the tag's start and the href attribute

Added by Wolfgang Klinger about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-08-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

currently it only works if the link has this format:

<a href="#top">

but e.g. not with
<a class="something" href="#top">

    function prefixLocalAnchorsWithScript() {
        $scriptPath = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
        $this->content = eregi_replace('(<(a|area)[[:space:]]+href=")(#[^"]*")','\1'.htmlspecialchars($scriptPath).'\3',$this->content);
    }

(issue imported from #M1419)

Files

prefixLocalAnchors-a-with-params.diff (573 Bytes) prefixLocalAnchors-a-with-params.diff Administrator Admin, 2005-09-27 16:10

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #14900: Minor problem with tslib_fe::prefixLocalAnchorsWithScript()ClosedSebastian Kurfuerst2005-08-03

Actions
Actions

Also available in: Atom PDF