summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-02 08:22:38 -0500
committerjim-p <jimp@pfsense.org>2010-12-02 08:22:38 -0500
commitb8e2fd16e45c21e9942da71020682a3b79f05a69 (patch)
tree99ca2801b4eb318b790e0bf67848e348e5d4f2fe /usr/local/www/services_dyndns_edit.php
parent310a9d7bdc87aca434f3ab61b8d75c00f3850782 (diff)
downloadpfsense-b8e2fd16e45c21e9942da71020682a3b79f05a69.zip
pfsense-b8e2fd16e45c21e9942da71020682a3b79f05a69.tar.gz
Use unlink here instead of an exec to rm. Remove escapeshellarg call as it isn't needed now. Fixes #1066
Diffstat (limited to 'usr/local/www/services_dyndns_edit.php')
-rw-r--r--usr/local/www/services_dyndns_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 22435ff..9ff0f22 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -117,7 +117,7 @@ if ($_POST) {
conf_mount_rw();
- mwexec("/bin/rm {$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . ".cache");
+ unlink("{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}{$dyndns['host']}.cache");
$retval = services_dyndns_configure_client($dyndns);
OpenPOWER on IntegriCloud