I have a question .....
ultimate_seo_urls5/includes/usu_general_functions
This is the original function
function usu_cleanse( $value ) {
return preg_replace( '@[^a-z0-9_]@i', '', $value );
}
I need [] because I use query array like gender[]=male&gender[]=female
And also I need "-" character because for example http://www.domain.com/product_info.php?products_id=6770&utm_campain=zz-cc it redirect to
http://www.domain.com/products-name-p-6770.html?utm_campain=zzcc and it removes the - character from the query
It is safe to change function to?
function usu_cleanse( $value ) {
return preg_replace( '@[^a-z0-9_ \%\+\[\]-]@i', '', $value );
}
I added [], -










