changeset 174 | 4c5c2b66a34d |
parent 164 | 54c79adfb694 |
child 178 | 4c19952406db |
child 183 | 91127e62f38f |
170:250aeb408ed7 | 174: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 /** |