<commit_before><?php
require_once ('session.php');
require_once ('shared.php');
require_once('header.php');
require_once ('soapclient/SforceApexClient.php');<commit_msg>added XSS protection to execute.php - issue 114<commit_after><?php
require_once ('session.php');
require_once ('shared.php');
require_once('header.php');
require_once ('soapclient/SforceApexClient.php');

//protect against XSS
foreach($_POST as $postKey => $postValue){
	$_POST[$postKey] = htmlspecialchars($postValue,ENT_QUOTES,'UTF-8');
}

{'fraction_non_alphanumeric': 0.17058823529411765, 'fraction_numerical': 0.00784313725490196, 'mean_word_length': 8.826923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7282034', 'n_tokens_mistral': 170, 'n_tokens_neox': 165, 'n_words': 30}