htmlspecialchars() expects parameter 1 to be string, int given
Closed this issue · 2 comments
vk-chaertl commented
Hello there,
I am trying to add a bunch of entries to fe_users, but I get an error at StoreData step.
(1/1) TypeError
htmlspecialchars() expects parameter 1 to be string, int given
in [...]/typo3conf/ext/external_import/Classes/Step/StoreDataStep.php line 1107
Context:
$data = unserialize($row['log_data'], ['allowed_classes' => false]);
$message = sprintf(
$label,
htmlspecialchars($data[0] ?? ''),
htmlspecialchars($data[1] ?? ''), <---
htmlspecialchars($data[2] ?? ''),
htmlspecialchars($data[3] ?? ''),
htmlspecialchars($data[4] ?? '')
);
The user names do indeed contain umlauts, scharf ß, hyphens and will in the future also include the @ sign and dots. Could this be the reason? How can I handle this? We sadly cannot change the usernames, and we know they work either way if we put them in manually.
vk-chaertl commented
Literally saw #246 five seconds after posting this. Apologies.
fsuter commented
Yes, it's the same.