Quote:
Originally Posted by lynxus
str_replace(); ?
|
That kinda works, but often just removing or replacing the bad word--will result in some nonsense search or worse. If the url ends with "having+***+with+a+dog" -- removing *** so it reads "having+with+a+dog" may likely return the same result. (YouTube video search)
I'd rather effectively say if $key contains any of the following badwords, then change to $key=sunshine
|