Project

General

Profile

Actions

Bug #14938

closed

"Insert/Modify Link" dialogue chokes on javascript values for links because of incorrectly prepended 'http://'

Added by Christopher about 19 years ago. Updated almost 11 years ago.

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

0%

Estimated time:
TYPO3 Version:
3.8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

See above.

Try to insert a javascript link (e.g. "javascript:history.go(-1);") via any link dialogue in the BE; upon saving the record, the link is prepended with 'http://'. Problems:

a) This renders the link unusable
b) If the record is now resaved, the link (which now reads "http://javascript:history.go(-1);"), the following error message appears (but changes to the record are saved to db):

Warning: parse_url(http://javascript:history.go(-1);): Unable to parse url in /home/chancent/bin/typo3_src-3.8.0/t3lib/class.t3lib_parsehtml_proc.php on line 1444

Clearly, the problem is with part (a) where the link value incorrectly gets 'http://' added to it. I assume that the linking is done using the typolink function which does not, in itself, have any problem with 'javascript:foobar();' links. E.g. this:

lib.backLink = HTML
lib.backLink {
value = « Previous Page
value.typolink.parameter = javascript:history.back(1);
}

...works.

-Christopher

(issue imported from #M1397)

Actions #1

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version changed from 3.8.0 to 3.8
  • PHP Version deleted (4)

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF