<commit_before><?php



function regmod_content(&$a) {

	if(! local_user()) {
		notice( t('Please login.') . EOL);
		$o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
		return $o;
	}

	if($a->argc != 3)
		killme();

	$cmd = $a->argv[1];
	$hash = $a->argv[2];


	$register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
		dbesc($hash)<commit_msg>ensure regmod redirects to itself after login<commit_after><?php



function regmod_content(&$a) {

	$_SESSION['return_url'] = $a->cmd;

	if(! local_user()) {
		notice( t('Please login.') . EOL);
		$o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
		return $o;
	}

	if($a->argc != 3)
		killme();

	$cmd = $a->argv[1];
	$hash = $a->argv[2];


	$register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
		dbesc($hash)
{'fraction_non_alphanumeric': 0.24277456647398843, 'fraction_numerical': 0.013872832369942197, 'mean_word_length': 3.7845303867403315, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 16, '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': '3571643', 'n_tokens_mistral': 375, 'n_tokens_neox': 346, 'n_words': 77}