<commit_before><?php
include_once('../config.php');

$id = $db->escape($_GET['id']);
$annotation = new Annotation($id);
echo '<div style="text-align: left">';
if ($annotation->read()) {
	$array = unserialize($annotation->text);
	if (! is_array($object)) {
		$array = (array) $array;
	}
	echo '<strong style="font-variant: small-caps">' . _('modificación') . ':</strong> ' . get_date_time($annotation->time);
	echo '<ul>';
	foreach ($array as $k => $v) {
		echo "<li><strong style='font-variant: small-caps'>$k</strong>: $v</li>\n";
	}
	echo '</ul>';
} else {
	echo _('objeto inexistente').': ', $id;
}
echo '</div>';
?><commit_msg>Fixed obscure XSS detected by detectify.com<commit_after><?php
include_once('../config.php');

$id = $db->escape($_GET['id']);
$annotation = new Annotation($id);
echo '<div style="text-align: left">';
if ($annotation->read()) {
	$array = unserialize($annotation->text);
	if (! is_array($object)) {
		$array = (array) $array;
	}
	echo '<strong style="font-variant: small-caps">' . _('modificación') . ':</strong> ' . get_date_time($annotation->time);
	echo '<ul>';
	foreach ($array as $k => $v) {
		echo "<li><strong style='font-variant: small-caps'>$k</strong>: $v</li>\n";
	}
	echo '</ul>';
} else {
	echo _('objeto inexistente').': ', htmlentities($id);
}
echo '</div>';
?>
{'fraction_non_alphanumeric': 0.25803981623277183, 'fraction_numerical': 0.0, 'mean_word_length': 5.079069767441861, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5828096', 'n_tokens_mistral': 469, 'n_tokens_neox': 468, 'n_words': 101}