Explorar el Código

fix getping inject

causefx hace 8 años
padre
commit
eb37c503ec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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";
 		}
 	}
-	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(){