Completed
Branch newinternal (cd27a7)
by Simon
03:47
created
redir.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
 	$data = $_GET['data'];
21 21
 	$tool = $_GET['tool'];
22 22
 
23
-	if($tool === 'link')
23
+	if ($tool === 'link')
24 24
 	{
25 25
 		// quick security check - if you want to exploit something, you better be sure your exploit resolves via dns.
26 26
 		// this is not intended to catch everything, just as a quick sanity check.
27
-		if(gethostbyname($data) == $data){
27
+		if (gethostbyname($data) == $data) {
28 28
 			echo 'Error resolving hostname, it doesn\'t look like this domain exists.';
29 29
 			die();
30 30
 		}
Please login to merge, or discard this patch.
includes/WebRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -438,14 +438,14 @@  discard block
 block discarded – undo
438 438
 	 * @param string $key
439 439
 	 * @return mixed
440 440
 	 */
441
-	public static function getSessionContext($key){
441
+	public static function getSessionContext($key) {
442 442
 		$session = &self::$globalStateProvider->getSessionSuperGlobal();
443 443
 
444
-		if(!isset($session['context'])) {
444
+		if (!isset($session['context'])) {
445 445
 			$session['context'] = array();
446 446
 		}
447 447
 
448
-		if(!isset($session['context'][$key])){
448
+		if (!isset($session['context'][$key])) {
449 449
 			return null;
450 450
 		}
451 451
 
@@ -456,10 +456,10 @@  discard block
 block discarded – undo
456 456
 	 * @param string $key
457 457
 	 * @param mixed  $data
458 458
 	 */
459
-	public static function setSessionContext($key, $data){
459
+	public static function setSessionContext($key, $data) {
460 460
 		$session = &self::$globalStateProvider->getSessionSuperGlobal();
461 461
 
462
-		if(!isset($session['context'])){
462
+		if (!isset($session['context'])) {
463 463
 			$session['context'] = array();
464 464
 		}
465 465
 
Please login to merge, or discard this patch.
includes/Pages/Request/PageRequestAccount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 		else {
63 63
 			// set the form values from the session context
64 64
 			$context = WebRequest::getSessionContext('accountReq');
65
-			if($context !== null && is_array($context))
65
+			if ($context !== null && is_array($context))
66 66
 			{
67 67
 				$this->assign('username', $context['username']);
68 68
 				$this->assign('email', $context['email']);
Please login to merge, or discard this patch.