⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (581 Bytes)
Bug #14900
ยป class.tslib_fe_diff.php
Administrator Admin, 2005-12-12 14:05
---
class
.
tslib_fe
.
php
2005
-
12
-
12
13
:
59
:
17.000000000
+
0100
+++
class
.
tslib_fe_new
.
php
2005
-
12
-
12
14
:
00
:
43.000000000
+
0100
@@
-
2680
,
7
+
2680
,
7
@@
*/
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
);
+
$this
->
content
=
preg_replace
(
'/(<(a|area).*?href=")(#[^"]*")/'
,
'\\1'
.
htmlspecialchars
(
$scriptPath
)
.
'\\3'
,
$this
->
content
);
}
(1-1/1)
Loading...