Codiad-Terminal icon indicating copy to clipboard operation
Codiad-Terminal copied to clipboard

'JAILED' to cd within project directoly only.

Open HiroKws opened this issue 10 years ago • 2 comments

Hi,

I have one enhancement idea.

Now user can change working directory anywhere by cd command. It is not secure.

So how about introduce 'JAILED' constant, and when it is true, user can move within only project directory.

It is not hard to implement, I think.

  1. Once move to user specified directory when used 'cd' command.
  2. Get absolute directory by 'pwd'.
  3. Compare if 'pwd' result will start with project root directory.
  4. If pwd result is not in project root, show error message, then just move to project root.

How about this?

ML, Hiro

HiroKws avatar Jul 05 '14 20:07 HiroKws

I agree with @HiroKws

hmrodrigues avatar Sep 21 '15 15:09 hmrodrigues

:+1:

chadrien avatar Nov 11 '15 09:11 chadrien