Skip to content

getAbsPath in service works poorly  #753

Closed
@junaire

Description

@junaire

I found there is something wrong with our current getAbsPath implementation:

  • Why it just simply splice workDir and path without / ?
  • It doesn't check the input, so it might splice workDir and absolute path again, which means it can be easily misused.

image

Is there anything wrong with getRelPath too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions