diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-05 20:10:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-05 20:10:49 +0000 |
commit | e6efdc5b987541de203c5f1f5aab8ec570202423 (patch) | |
tree | 0bdf89e7c5a7494714da9c6e52a8e87b94f63593 /packages | |
parent | 08c7cb1bb82d5f0f1636af10615acaa47199b149 (diff) | |
download | pfsense-packages-e6efdc5b987541de203c5f1f5aab8ec570202423.tar.gz pfsense-packages-e6efdc5b987541de203c5f1f5aab8ec570202423.tar.bz2 pfsense-packages-e6efdc5b987541de203c5f1f5aab8ec570202423.zip |
Correctly esacpe \t and \n
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squidGuard.xml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml index 714be38c..1e15e282 100644 --- a/packages/squidGuard.xml +++ b/packages/squidGuard.xml @@ -9,19 +9,19 @@ echo "<pre>"; $fout = fopen("/usr/local/etc/squid/squidGuard.conf","w"); fwrite($fout, "# This configuration was generated by the pfSense package manager.\n"); - fwrite($fout, "# cat squidGuard.conf\n\n"); - fwrite($fout, "dbhome /var/db/squidGuard\n"); - fwrite($fout, "logdir /usr/local/squid/logs\n"); - fwrite($fout, "acl {\n"); - fwrite($fout, "\t default {\n"); - fwrite($fout, "\t pass all\n"); - fwrite($fout, "\t }\n"); - fwrite($fout, "}\n"); + fwrite($fout, "# cat squidGuard.conf\\n\\n"); + fwrite($fout, "dbhome /var/db/squidGuard\\n"); + fwrite($fout, "logdir /usr/local/squid/logs\\n"); + fwrite($fout, "acl {\\n"); + fwrite($fout, "\\t default {\\n"); + fwrite($fout, "\\t pass all\\n"); + fwrite($fout, "\\t }\\n"); + fwrite($fout, "}\\n"); fclose($fout); sync_package("squid"); $fout = fopen("/usr/local/etc/squid/squid.conf","a"); - fwrite($fout, "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf\n"); - fwrite($fout, "redirect_children 4\n"); + fwrite($fout, "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf\\n"); + fwrite($fout, "redirect_children 4\\n"); fclose($fout); mwexec("/usr/bin/touch /usr/local/squid/logs/squidGuard.log"); mwexec("/usr/sbin/chown squid /usr/local/squid/logs/squidGuard.log"); |