<commit_before><HTML>
<HEAD>
	<title>BLAH</title>
</HEAD>
<BODY>
<p>
<?php 	
	session_start();
	include ('./inc/PHPconnectionDB.php');
	if (isset($_POST['PassChange'])) {
			$oldPass = $_POST['oldPass'];
			$newPass1 = $_POST['newPass1'];
			$newPass2 = $_POST['newPass2'];

			if ($newPass1 != $newPass2) {
				$_SESSION['pass_change_err'] = True;
				$_SESSION['pass_err_msg'] = "Passwords do not match!";
				header( 'Location: ./account_settings.php' );
				exit(1);
			}
			
			$conn = connect();
			if (!$conn) {
   				$e = oci_error();
   				trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
    			} 
				
			$sql = "SELECT user_name FROM users WHERE password = '" . $oldPass . <commit_msg>added length constraint to password changes<commit_after><HTML>
<HEAD>
	<title>BLAH</title>
</HEAD>
<BODY>
<p>
<?php 	
	session_start();
	include ('./inc/PHPconnectionDB.php');
	if (isset($_POST['PassChange'])) {
			$oldPass = $_POST['oldPass'];
			$newPass1 = $_POST['newPass1'];
			$newPass2 = $_POST['newPass2'];

			if ($newPass1 != $newPass2) {
				$_SESSION['pass_change_err'] = True;
				$_SESSION['pass_err_msg'] = "Passwords do not match!";
				header( 'Location: ./account_settings.php' );
				exit(1);
			} else if (strlen($newPass1) > 24) {
				$_SESSION['pass_change_err'] = True;
				$_SESSION['pass_err_msg'] = "Password must be under 24 characters!";
				header( 'Location: ./account_settings.php' );
				exit(1);
			}
	
			$conn = connect();
			if (!$conn) {
   				$e = oci_error();
   				trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
    			} 
				
			$sql = "SELECT user_name FROM users WHERE password = '" . $oldPass . 
{'fraction_non_alphanumeric': 0.18931750741839762, 'fraction_numerical': 0.011869436201780416, 'mean_word_length': 3.644628099173554, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 18, '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': '2184400', 'n_tokens_mistral': 715, 'n_tokens_neox': 621, 'n_words': 120}