Code Duplication    Length = 4-5 lines in 2 locations

lib/includes/loader.web.php 2 locations

@@ 747-750 (lines=4) @@
744
						include_once($store_config['code']."modules/mod_esi.php");
745
746
						// Replace the session IDs before the ESI process call to pass the correct session ID information...
747
						if ($session_id && !$AR->hideSessionIDfromURL) {
748
							$tag = '{arSessionID}';
749
							$data = str_replace($tag, "-$session_id-", $data);
750
						}
751
752
						$data = ESI::esiProcess($data);
753
@@ 770-774 (lines=5) @@
767
					$tag = '{arSessionID}';
768
					$data = file_get_contents($cachedimage);
769
					$tag = '{arSessionID}';
770
					if (!$AR->hideSessionIDfromURL) {
771
						$data = str_replace($tag, "-$session_id-", $data);
772
					} else {
773
						$data = str_replace($tag, '', $data);
774
					}
775
					$data_len = strlen($data);
776
					header("Content-Length: ".$data_len);
777
					echo $data;