Files
luanti/src
asrelo cfa9c83d33 Improve fs::PathStartsWith to handle empty strings (#14877)
`""` does not refer to a proper path, and `fs::PathStartsWith(path, "")` should just return `false`. This is also the case in libraries in other languages where I looked, seems to be common.

The new behavior:
* check early, if `prefix` is empty - return if path is empty or not,
* no special processing for when `path` is empty, the function meets characters in `prefix` and returns false anyway.
2024-08-11 20:19:14 +02:00
..
2024-06-10 21:15:30 +02:00
2024-06-10 18:49:43 +02:00
2024-06-10 21:15:30 +02:00
2024-06-10 21:15:30 +02:00
2024-06-10 21:15:30 +02:00
2023-05-26 15:21:23 +02:00
2024-01-17 20:05:57 +01:00
2023-04-27 18:50:33 +02:00
2023-04-27 18:50:33 +02:00
2024-04-20 13:03:42 +02:00
2023-04-08 20:17:50 +02:00
2023-02-20 21:00:37 +01:00
2017-08-17 22:19:39 +02:00
2017-08-17 22:19:39 +02:00
2023-04-27 18:50:33 +02:00
2023-05-26 15:13:57 +02:00
2024-06-10 18:49:43 +02:00
2024-06-10 18:49:43 +02:00
2024-04-20 13:03:42 +02:00
2022-02-26 14:39:41 +01:00
2024-04-20 13:03:42 +02:00
2023-06-26 22:51:32 +02:00
2024-04-20 14:32:35 +02:00
2024-04-20 14:32:35 +02:00
2024-03-06 22:33:32 +01:00
2024-03-06 22:33:32 +01:00
2023-05-26 15:21:23 +02:00
2017-08-17 22:19:39 +02:00
2023-06-26 22:51:32 +02:00