Function

ECalutil_sanitize_untrusted_full

since: 3.62.2

Declaration [src]

void
e_cal_util_sanitize_untrusted_full (
  ICalComponent* comp,
  ECalUtilUriNeedsChangeFunc uri_needs_change_func,
  gpointer user_data
)

Description [src]

Sanitizes the comp, which can be from an untrusted source, to not contain possible harmful properties or parameters.

The uri_needs_change_func, if not NULL, is called for each attachment URI, to check whether the URI is trusted. It can be also used to replace the attachment URI-s. When the uri_needs_change_func is NULL the function modifies each “file://” URI to “xfile://”.

Note: This function is renamed to e_cal_util_sanitize_untrusted() in the 3.64 series.

Available since: 3.62.2

Parameters

comp

Type: None

An ICalComponent.

The data is owned by the caller of the function.
uri_needs_change_func

Type: ECalUtilUriNeedsChangeFunc

An ECalUtilUriNeedsChangeFunc.

The argument can be NULL.
user_data

Type: gpointer

User data passed to the uri_needs_change_func.

The argument can be NULL.
The data is owned by the caller of the function.