Project

General

Profile

Actions

Bug #99653

closed

Bug in http_makelinks when parse_url($scheme . $parts[0]); is performed

Added by Thomas Hohn almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Start date:
2023-01-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If editors paste text into the RTE that contains the strings http:// and/or https:// the can
lead to a warning when parsing the text for linke creation.

Example:

We have a text that contains http:// og https://, which is the scheme. Also add https://www.typo3.org as an example.

The problem is that the call to:

$linkParts = parse_url($scheme . $parts[0]);

will fail on https:// and http://

The solution could be to add an check for the return value and leave the string untouched in case
it could bot be parsed.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99269: ContentObjectRenderer public function http_makelinks php 8.x Error and strange behavior at least since TYPO3 8LTSClosedThomas Hohn2022-12-05

Actions
Actions #1

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77513

Actions #2

Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77513

Actions #3

Updated by Gerrit Code Review almost 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77439

Actions #4

Updated by Thomas Hohn almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Thomas Hohn almost 2 years ago

  • Related to Bug #99269: ContentObjectRenderer public function http_makelinks php 8.x Error and strange behavior at least since TYPO3 8LTS added
Actions #6

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF