Needs review
Project:
FooTable
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Feb 2023 at 13:40 UTC
Updated:
31 Mar 2023 at 07:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adil_siddiqui commentedPatch created
Comment #3
avpadernoComment #4
avpadernoIf
$field_handler->last_renderis not a string, it is pointless to execute that code, as zero (drupal_strlen($field_handler->last_render)) is equal to zero (drupal_strlen(strip_tags((string) $field_handler->last_render ?? '')).Comment #6
sahil.goyal commentedAddressed the comment #4, So to address this issue modified the code to check if
$field_handler->last_renderis a string before executing thedrupal_strlenandstrip_tagsfunctions.Before attempting to check here its length and strip out any tags, If
$field_handler->last_renderis not a string, the code inside the if statement will not be executed.So updating the patch and attaching Interdiff.