Fix search security

@thejspr, you might be interested :wink: