Skip to content
Commit ba1338e6 authored by MichaIng's avatar MichaIng
Browse files

Return 404 when AJAX tries to list dir content but file given



Due to a code mistake, the expected 404 return when AJAX tries to list a directory content with a non-directory file path given, does not happen. It instead fails with another exception.

This commit restores the original intention to return 404 in the first place when passing a non-directory path with the "dir" parameter.

Signed-off-by: default avatarMichaIng <micha@dietpi.com>
parent a145edd0
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