Skip to content

Conversation

@directionless
Copy link
Member

As discussed in #8443, the docs are misleading. This function is restricted to ascii printable, not just ascii

As discussed in osquery#8443, the docs are misleading. This function is
restricted to ascii printable, not just ascii
@Smjert
Copy link
Member

Smjert commented Oct 23, 2024

While we are at it, can we also update these lines:

osquery> select conditional_to_base64(device_id + char(183)) as device_id from cpu_info;
device_id = 0

to

osquery> select conditional_to_base64(device_id || char(183)) as device_id from cpu_info;
device_id = Q1BVMMK3

The string concatenation operator is wrong, so the function gets passed 0, and no encoding happens.

@directionless directionless merged commit 510c4b1 into osquery:master Oct 24, 2024
@directionless directionless deleted the seph/docs branch October 24, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants