Skip to content

CVE-2023-49802 : Problem with special characters #10

Closed
@lampdanny

Description

@lampdanny

Problem: linked fields with special characters (like &) can't be saved
Solution: use htmlspecialchars_decode in LinkedCustomFields.API.php

static function getLinkedFieldId( $p_source_field_id ) {

	$t_query = "SELECT target_field_id FROM " . plugin_table( 'data' ) . " WHERE custom_field_id = " . db_param();

	$t_result = db_query( $t_query, array( $p_source_field_id ) );

	if( 0 == db_num_rows( $t_result ) ) {
		return null;
	}

	$t_array = db_fetch_array( $t_result );
	**return htmlspecialchars_decode($t_field_values_js);**
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions