Code Duplication    Length = 2-2 lines in 3 locations

Sources/QueryString.php 3 locations

@@ 86-87 (lines=2) @@
83
		parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&', '%00' => '', "\0" => ''))), $_GET);
84
85
		// Magic quotes still applies with parse_str - so clean it up.
86
		if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
87
			$_GET = $removeMagicQuoteFunction($_GET);
88
	}
89
	elseif (strpos(ini_get('arg_separator.input'), ';') !== false)
90
	{
@@ 91-92 (lines=2) @@
88
	}
89
	elseif (strpos(ini_get('arg_separator.input'), ';') !== false)
90
	{
91
		if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
92
			$_GET = $removeMagicQuoteFunction($_GET);
93
94
		// Search engines will send action=profile%3Bu=1, which confuses PHP.
95
		foreach ($_GET as $k => $v)
@@ 133-134 (lines=2) @@
130
		if (strpos($request, basename($scripturl) . '/') !== false)
131
		{
132
			parse_str(substr(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr(preg_replace('~/([^,/]+),~', '/$1=', substr($request, strpos($request, basename($scripturl)) + strlen(basename($scripturl)))), '/', '&')), 1), $temp);
133
			if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc() != 0 && empty($modSettings['integrate_magic_quotes']))
134
				$temp = $removeMagicQuoteFunction($temp);
135
			$_GET += $temp;
136
		}
137
	}