{"action":"created","issue":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/1212","repository_url":"https://api.github.com/repos/Studio-42/elFinder","labels_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1212/labels{/name}","comments_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1212/comments","events_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1212/events","html_url":"https://github.com/Studio-42/elFinder/issues/1212","id":132205400,"number":1212,"title":"connector.php -> path variable in the Internet Explorer","user":{"login":"uFlock","id":10631195,"avatar_url":"https://avatars.githubusercontent.com/u/10631195?v=3","gravatar_id":"","url":"https://api.github.com/users/uFlock","html_url":"https://github.com/uFlock","followers_url":"https://api.github.com/users/uFlock/followers","following_url":"https://api.github.com/users/uFlock/following{/other_user}","gists_url":"https://api.github.com/users/uFlock/gists{/gist_id}","starred_url":"https://api.github.com/users/uFlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uFlock/subscriptions","organizations_url":"https://api.github.com/users/uFlock/orgs","repos_url":"https://api.github.com/users/uFlock/repos","events_url":"https://api.github.com/users/uFlock/events{/privacy}","received_events_url":"https://api.github.com/users/uFlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-08T17:21:40Z","updated_at":"2016-02-10T12:25:48Z","closed_at":null,"body":"I am setting path dynamically in connector.php and it works as it should in All the browsers apart from Internet Explorer. Here is my connector.php code:\r\n\r\n \r\n\r\n```\r\n    function access($attr, $path, $data, $volume) {\r\n    \treturn strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)\r\n    \t\t? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true\r\n    \t\t:  null;                                    // else elFinder decide it itself\r\n    }\r\n    \r\n    \r\n    // Documentation for connector options:\r\n    // https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options\r\n    $opts = array(\r\n    \t'debug' => true,\r\n    \t'roots' => array(\r\n    \t\tarray(\r\n    \t\t\t'driver'        => 'LocalFileSystem',          \r\n    \t\t\t'path'          => '../../pages/path/to/files/'.($_GET['mypath']).'/', \r\n    \t\t\t'URL'           => '../../pages/path/to/files/'.($_GET['mypath']).'/', \r\n    \t\t\t'uploadDeny'    => array('all'),               \r\n    \t\t\t'uploadAllow'   => array('image', 'text/plain'),\r\n    \t\t\t'uploadOrder'   => array('deny', 'allow'),      \r\n    \t\t\t'accessControl' => 'access'\r\n                \r\n    \t\t)\r\n    \t)\r\n    );\r\n    \r\n    // run elFinder\r\n    $connector = new elFinderConnector(new elFinder($opts));\r\n    $connector->run();\r\n```\r\n\r\n\r\nBasically what is happening is that if you are using any browser (other than IE) your root directory is correctly set to `$_GET['mypath']`, but if you are in IE then root directory is set to `/files/` (the directory just one level up from the one needed) and as a result user can see folders which he should not be accessing. \r\n\r\nAny ideas as to why this is happening?\r\n\r\nP.S. The only theory I have is that maybe IE JavaScript Engine is sending incorrect `mypath `variable?\r\n\r\nelFinder Code Below:\r\n\r\n```\r\n    <script type=\"text/javascript\" charset=\"utf-8\">\r\n        $().ready(function() {\r\n            var elf = $('#elfinder').elfinder({\r\n                // lang: 'ru',             \r\n                url : 'libraries/elFinder/connector.php', \r\n                rememberLastDir : false,\r\n                useBrowserHistory : false,\r\n                customData : {mypath : <?php echo json_encode($_GET['CIF']); ?>}\r\n            }).elfinder('instance');            \r\n        });\r\n    </script>\r\n```\r\n\r\nAnd the Actual Source of the page looks like this:\r\n\r\n```\r\n    <script type=\"text/javascript\" charset=\"utf-8\">\r\n        $().ready(function() {\r\n            var elf = $('#elfinder').elfinder({\r\n                // lang: 'ru',             \r\n                url : 'libraries/elFinder/connector.php', \r\n                rememberLastDir : false,\r\n                useBrowserHistory : false,\r\n                customData : {mypath : \"mypath_folder\"}\r\n            }).elfinder('instance');            \r\n        });\r\n    </script>\r\n\r\n```\r\n\r\nP.S.S > I have just confirmed that IE doesn't send mypath variable.\r\n\r\nDoes anyone has any ideas?"},"comment":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/comments/182347498","html_url":"https://github.com/Studio-42/elFinder/issues/1212#issuecomment-182347498","issue_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1212","id":182347498,"user":{"login":"nao-pon","id":1412630,"avatar_url":"https://avatars.githubusercontent.com/u/1412630?v=3","gravatar_id":"","url":"https://api.github.com/users/nao-pon","html_url":"https://github.com/nao-pon","followers_url":"https://api.github.com/users/nao-pon/followers","following_url":"https://api.github.com/users/nao-pon/following{/other_user}","gists_url":"https://api.github.com/users/nao-pon/gists{/gist_id}","starred_url":"https://api.github.com/users/nao-pon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nao-pon/subscriptions","organizations_url":"https://api.github.com/users/nao-pon/orgs","repos_url":"https://api.github.com/users/nao-pon/repos","events_url":"https://api.github.com/users/nao-pon/events{/privacy}","received_events_url":"https://api.github.com/users/nao-pon/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T12:25:48Z","updated_at":"2016-02-10T12:25:48Z","body":"> Is there any chance that this $_POST / $_GET issue will be solved in the upcoming release?\r\n\r\nBehavior of IE is unknown, I think that is not a elFinder problems. I recommend that you [fixed to POST send the elFinder](https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#requesttype).\r\n\r\n```javascript\r\n$().ready(function() {\r\n    var elf = $('#elfinder').elfinder({\r\n        // lang: 'ru',             \r\n        url : 'libraries/elFinder/connector.php',\r\n        requestType : 'post',\r\n        rememberLastDir : false,\r\n        useBrowserHistory : false,\r\n        customData : {mypath : <?php echo json_encode($_GET['CIF']); ?>}\r\n    }).elfinder('instance');            \r\n});\r\n```"}}