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