includes/functions.php
changeset 170 4c5c2b66a34d
parent 163 54c79adfb694
child 173 91127e62f38f
equal deleted inserted replaced
169:250aeb408ed7 170:4c5c2b66a34d
  2742  */
  2742  */
  2743 
  2743 
  2744 function sanitize_tag($tag)
  2744 function sanitize_tag($tag)
  2745 {
  2745 {
  2746   $tag = strtolower($tag);
  2746   $tag = strtolower($tag);
  2747   $tag = preg_replace('/[^\w _-]+/', '', $tag);
  2747   $tag = preg_replace('/[^\w _@\$%\^&-]+/', '', $tag);
  2748   $tag = trim($tag);
  2748   $tag = trim($tag);
  2749   return $tag;
  2749   return $tag;
  2750 }
  2750 }
  2751 
  2751 
  2752 /**
  2752 /**