Commit 5c4a0943 authored by Ryan Pavlik's avatar Ryan Pavlik
Browse files

st/oxr: Paths cannot end with a slash.

parent f51930e0
...@@ -221,6 +221,10 @@ oxr_verify_full_path(struct oxr_logger* log, ...@@ -221,6 +221,10 @@ oxr_verify_full_path(struct oxr_logger* log,
break; break;
} }
if (valid) {
// Can't end with slash
valid = (path[length - 1] != '/');
}
if (!valid) { if (!valid) {
return oxr_error(log, XR_ERROR_PATH_FORMAT_INVALID, return oxr_error(log, XR_ERROR_PATH_FORMAT_INVALID,
"(%s) 0x%02x is not a valid character " "(%s) 0x%02x is not a valid character "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment