Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1332

wrong replacement in FileContainer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-RC2
    • Fix Version/s: 2.0.0-RC2
    • Component/s: PHP
    • Labels:
      None

      Description

      /php/src/gadgets/servlet/FileServlet.php is doing replacement with incorrect string (url)

      $file = str_replace(Config::get('web_prefix') . '/gadgets/files/', '', $_SERVER["REQUEST_URI"]);

      it should be like this:

      $file = str_replace(Config::get('web_prefix'), '', $_SERVER["REQUEST_URI"]);

      as due to some changes in php/index.php
      $servletMap does not contain '/gadgets/files/' any more.

      Patch is attached.

        Attachments

        1. diff.patch
          0.8 kB
          Ram Sharma

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ramsharma2k5 Ram Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: