<commit_before><?php
	session_start();

	include('lib/connectionfile.php');
	$uname=$_POST[username];
	$password1=$_POST[password];
	$encpass = <PASSWORD>($<PASSWORD>);
	
	 
	 $count=0;
	 $xid=0;
	 
      $sql = "SELECT * FROM w_users where username='$_POST[username]' and password='$<PASSWORD>'";
      foreach(dbconfn()->query($sql) as $row)
        {
        	$count=$count+1;
        }
	
	
	
	if($count==1)
	{
		$_SESSION['username']=$uname;
		$_SESSION['authuser']=1;
		header('Location:home');
	}
	else
	{
		header('Location:index.php?xid=1');
	}
	
	
	
?>
<commit_msg>changed to escape string in login<commit_after><?php
	session_start();

	include('lib/connectionfile.php');
	$uname= pg_escape_string($_POST[username]);
	$password1= pg_escape_string($_POST[password]);
	$encpass = <PASSWORD>($<PASSWORD>);
	
	 
	 $count=0;
	 $xid=0;
	 
      $sql = "SELECT * FROM w_users where username='$_POST[username]' and password='$<PASSWORD>'";
      foreach(dbconfn()->query($sql) as $row)
        {
        	$count=$count+1;
        }
	
	
	
	if($count==1)
	{
		$_SESSION['username']=$uname;
		$_SESSION['authuser']=1;
		header('Location:home');
	}
	else
	{
		header('Location:index.php?xid=1');
	}
	
	
	
?>

{'fraction_non_alphanumeric': 0.20066334991708126, 'fraction_numerical': 0.011608623548922056, 'mean_word_length': 3.7896825396825395, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1621681', 'n_tokens_mistral': 490, 'n_tokens_neox': 451, 'n_words': 61}