I know when I want to save data in database, I must sanitize data but what about following case which is a simple comparison. Should I sanitize?
if ( ! isset( $_GET['page'] ) ) {
return;
}
if ( 'google' === $_GET['page'] ) {
wp_redirect( 'https://google.com' );
exit;
}
if ( 'facebook' === $_GET['page'] ) {
wp_redirect( 'https://facebook.com' );
exit;
}