"PHP" / Говнокод #642 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
function clear_danger_html ($string) {
	$string = preg_replace ("#onclick=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onmouseover=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onmouseout=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onmousedown=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onmouseup=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onselect=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onfocus=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onblur=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onload=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onkeydown=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onkeyup=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#ondblclick=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onunload=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onmouseup=[\"|\'](.+?)[\"|\']#is", "", $string);
	$string = preg_replace ("#onsubmit=[\"|\'](.+?)[\"|\']#is", "", $string);
	return $string;
}

Explay CMS

Запостил: guest guest, (Updated )

Комментарии (0) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8