Sfoglia il codice sorgente

fix getping inject

causefx 8 anni fa
parent
commit
eb37c503ec
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      functions.php

+ 3 - 1
functions.php

@@ -4754,7 +4754,9 @@ function getPing($url, $style, $refresh = null){
 			$class .= " animated flash loop-animation-timeout";
 			$class .= " animated flash loop-animation-timeout";
 		}
 		}
 	}
 	}
-	echo '<span class="pingcheck badge ping-'.$class.'" style="position: absolute;z-index: 100;right: 5px; padding: 0px 0px;'.$style.';font-size: 10px;">&nbsp;</span>';
+	if (strpos($style, '<') === false && strpos($style, '>') === false) {
+		echo '<span class="pingcheck badge ping-'.$class.'" style="position: absolute;z-index: 100;right: 5px; padding: 0px 0px;'.$style.';font-size: 10px;">&nbsp;</span>';
+	}
 }
 }
 
 
 function speedTestData(){
 function speedTestData(){