HTML format plugin in tmgmt_file does no accept a string in validateImport()

Created on 31 October 2024, 5 months ago

Problem/Motivation

The Html::validateImport($imported_file, $is_file = TRUE) method seems to indicate it either accepts a filename or a HTML string (same as the Html::import($imported_file, $is_file = TRUE) method). In the implementation however, it doesn't use the $is_file parameter to load the content.

Steps to reproduce

Call Html::validateImport('<some valid html>', FALSE) and observe the method returning FALSE.

Proposed resolution

Same as the implementation in Html::import($imported_file, $is_file = TRUE), the $is_file parameter should be respected.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None

API changes

None, the API already contains the $is_file parameter.

Data model changes

None

🐛 Bug report
Status

Active

Version

1.0

Component

Translator: File

Created by

🇳🇱Netherlands seanB Netherlands

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024