Mercurial > hg > mlmmj
comparison contrib/web/php-admin/htdocs/save.php @ 762:dbb144f085a5
Fix php-admin to work when topdir contains a symlink (e.g. on Mac)
author | Ben Schmidt |
---|---|
date | Mon, 18 Oct 2010 09:59:24 +1100 |
parents | 73c8715367fb |
children | 75fb7729c6e8 |
comparison
equal
deleted
inserted
replaced
761:4bf5317e9bd7 | 762:dbb144f085a5 |
---|---|
82 $list = $HTTP_POST_VARS["list"]; | 82 $list = $HTTP_POST_VARS["list"]; |
83 | 83 |
84 if(!isset($list)) | 84 if(!isset($list)) |
85 die("no list specified"); | 85 die("no list specified"); |
86 | 86 |
87 if (dirname(realpath($topdir."/".$list)) != $topdir) | 87 if (dirname(realpath($topdir."/".$list)) != realpath($topdir)) |
88 die("list outside topdir"); | 88 die("list outside topdir"); |
89 | 89 |
90 if(!is_dir($topdir."/".$list)) | 90 if(!is_dir($topdir."/".$list)) |
91 die("non-existent list"); | 91 die("non-existent list"); |
92 | 92 |