Revision: 7229
http://sourceforge.net/p/ipcop/svn/7229
Author: owes
Date: 2014-02-14 15:26:17 +0000 (Fri, 14 Feb 2014)
Log Message:
-----------
Replacing space with underscore for ccd files is no longer needed.
Modified Paths:
--------------
ipcop/trunk/html/cgi-bin/openvpn.cgi
ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2
Modified: ipcop/trunk/html/cgi-bin/openvpn.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/openvpn.cgi 2014-02-14 07:18:46 UTC (rev
7228)
+++ ipcop/trunk/html/cgi-bin/openvpn.cgi 2014-02-14 15:26:17 UTC (rev
7229)
@@ -300,7 +300,6 @@
return unless ($vpnsettings{'STATICIP'} eq 'on');
my $filename = "/var/ipcop/openvpn/ccd/$confighash{$key}[2]";
- $filename =~ tr/ /_/;
open(CONF, ">$filename") or die "Unable to open $filename $!";
print CONF "# $confighash{$key}[2]\n";
@@ -313,6 +312,8 @@
my $key = shift;
return unless ($vpnsettings{'STATICIP'} eq 'on');
my $filename = "/var/ipcop/openvpn/ccd/$confighash{$key}[2]";
+ unlink($filename) if (-e $filename);
+ # In older IPCop versions we needed to replace ' ' by '_', so an 'old' ccd
file might still be around.
$filename =~ tr/ /_/;
unlink($filename) if (-e $filename);
}
Modified: ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2
===================================================================
--- ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2 2014-02-14 07:18:46 UTC
(rev 7228)
+++ ipcop/trunk/updates/2.1.2/ROOTFILES.i486-2.1.2 2014-02-14 15:26:17 UTC
(rev 7229)
@@ -1 +1,2 @@
## please place IPCop files first, then packages sorted by alphabetical order
+/home/httpd/cgi-bin/openvpn.cgi
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn