Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13849

getDirectory('') returns root path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • cordova-android-7.0.0
    • None
    • cordova-plugin-file
    • None
    • Android

    Description

      At the moment the command {someDir}.getDirectory("") with a blank argument returns the root-path.
      If someone works already on a subdirectory that behaviour might be a security flaw.

      Better would be to return the current directory.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thaupenthal Tobias Haupenthal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m