  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: compatibility.php 1829 2008-01-29 22:44:16Z hpdl $ |
| |
| 3 | + | $Id: compatibility.php 1838 2008-12-12 10:54:24Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
80 | 80 | | if (!function_exists('checkdnsrr')) { |
| |
81 | 81 | | function checkdnsrr($host, $type) { |
| |
82 | 82 | | if(tep_not_null($host) && tep_not_null($type)) { |
  |
83 | | - | @exec("nslookup -type=$type $host", $output); |
| |
| 83 | + | @exec("nslookup -type=" . escapeshellarg($type) . " " . escapeshellarg($host), $output); |
  |
84 | 84 | | while(list($k, $line) = each($output)) { |
| |
85 | 85 | | if(eregi("^$host", $line)) { |
| |
86 | 86 | | return true; |