Completed
Push — master ( fb0017...92433c )
by cam
01:14
created
config/ecran_securite.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -659,8 +659,12 @@
 block discarded – undo
659 659
 		  and preg_match(',[bidsaO]:,', $v)
660 660
 		  and @unserialize($v)) {
661 661
 			$_REQUEST[$k] = htmlentities($v);
662
-			if (isset($_POST[$k])) $_POST[$k] = $_REQUEST[$k];
663
-			if (isset($_GET[$k])) $_GET[$k] = $_REQUEST[$k];
662
+			if (isset($_POST[$k])) {
663
+			    $_POST[$k] = $_REQUEST[$k];
664
+			}
665
+			if (isset($_GET[$k])) {
666
+			    $_GET[$k] = $_REQUEST[$k];
667
+			}
664 668
 		}
665 669
 	}
666 670
 }
Please login to merge, or discard this patch.
ecrire/inc/filtres_images_lib_mini.php 1 patch
Braces   +5 added lines, -11 removed lines patch added patch discarded remove patch
@@ -320,8 +320,7 @@  discard block
 block discarded – undo
320 320
 		if (strpos($img, '<img ') !== 0) {
321 321
 			$source = $img;
322 322
 			$img = "<img src='$source' />";
323
-		}
324
-		else {
323
+		} else {
325 324
 			// pas d'attribut src sur cette balise <img../>
326 325
 			return false;
327 326
 		}
@@ -547,8 +546,7 @@  discard block
 block discarded – undo
547 546
 			process_image_svg_identite($ret);
548 547
 			$ret['creer'] = false;
549 548
 		}
550
-	}
551
-	else {
549
+	} else {
552 550
 		if (!function_exists($ret['fonction_imagecreatefrom'])) {
553 551
 			return false;
554 552
 		}
@@ -652,8 +650,7 @@  discard block
 block discarded – undo
652 650
 
653 651
 	if (isset($info['mime'])) {
654 652
 		$mime = $info['mime'];
655
-	}
656
-	else {
653
+	} else {
657 654
 		$mime = image_type_to_mime_type($info[2]);
658 655
 	}
659 656
 
@@ -1401,9 +1398,7 @@  discard block
 block discarded – undo
1401 1398
 	if ($srcWidth and $srcWidth <= $maxWidth and $srcHeight <= $maxHeight) {
1402 1399
 		$vignette = $destination . '.' . $format;
1403 1400
 		@copy($image, $vignette);
1404
-	}
1405
-
1406
-	elseif ($valeurs['format_source'] === 'svg') {
1401
+	} elseif ($valeurs['format_source'] === 'svg') {
1407 1402
 		include_spip('inc/svg');
1408 1403
 		if ($svg = svg_redimensionner($valeurs['fichier'], $destWidth, $destHeight)) {
1409 1404
 			$format_sortie = 'svg';
@@ -1846,8 +1841,7 @@  discard block
 block discarded – undo
1846 1841
 		$date = test_espace_prive() ? ('?' . $date) : '';
1847 1842
 
1848 1843
 		return _image_ecrire_tag($image, ['src' => "$logo$date", 'width' => $destWidth, 'height' => $destHeight]);
1849
-	}
1850
-	else {
1844
+	} else {
1851 1845
 		# BMP, tiff ... les redacteurs osent tout!
1852 1846
 		return $img;
1853 1847
 	}
Please login to merge, or discard this patch.
ecrire/inc/livrer_fichier.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 	if (!is_null($options['range'])) {
55 55
 		spip_livrer_fichier_partie($fichier, $options['range']);
56
-	}
57
-	else {
56
+	} else {
58 57
 		spip_livrer_fichier_entier($fichier);
59 58
 	}
60 59
 }
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
 		header('Expires: 0'); // set expiration time
93 92
 		header('Pragma: public');
94 93
 		header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
95
-	}
96
-	else {
94
+	} else {
97 95
 		$f = (is_string($attachment) ? $attachment : basename($fichier));
98 96
 		header("Content-Disposition: inline; filename=\"$f\";");
99 97
 		header('Expires: ' . $expires); // set expiration time
@@ -160,8 +158,7 @@  discard block
 block discarded – undo
160 158
 		}
161 159
 
162 160
 		$cr_header = sprintf('Content-Range: bytes %d-%d/%d', $byteOffset, $finishBytes, $fileSize);
163
-	}
164
-	else {
161
+	} else {
165 162
 		// si pas de range valide, on delegue a la methode d'envoi complet
166 163
 		spip_livrer_fichier_entier($fichier);
167 164
 		// redondant, mais facilite la comprehension du code
Please login to merge, or discard this patch.