@@ 132-142 (lines=11) @@ | ||
129 | if (isset($open_basedir)) { |
|
130 | $inBaseDir = false; |
|
131 | if (PSI_OS == 'WINNT') { |
|
132 | foreach ($open_basedir as $openbasedir) { |
|
133 | if (substr($openbasedir, -1)=="\\") { |
|
134 | $str_Path = $strPathS; |
|
135 | } else { |
|
136 | $str_Path = $strPath; |
|
137 | } |
|
138 | if (stripos($str_Path, $openbasedir) === 0) { |
|
139 | $inBaseDir = true; |
|
140 | break; |
|
141 | } |
|
142 | } |
|
143 | } else { |
|
144 | foreach ($open_basedir as $openbasedir) { |
|
145 | if (substr($openbasedir, -1)=="/") { |
|
@@ 144-154 (lines=11) @@ | ||
141 | } |
|
142 | } |
|
143 | } else { |
|
144 | foreach ($open_basedir as $openbasedir) { |
|
145 | if (substr($openbasedir, -1)=="/") { |
|
146 | $str_Path = $strPathS; |
|
147 | } else { |
|
148 | $str_Path = $strPath; |
|
149 | } |
|
150 | if (strpos($str_Path, $openbasedir) === 0) { |
|
151 | $inBaseDir = true; |
|
152 | break; |
|
153 | } |
|
154 | } |
|
155 | } |
|
156 | if ($inBaseDir == false) { |
|
157 | continue; |