aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-04-26 20:42:00 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-04-26 20:42:00 -0400
commit45d19c10894572582363e387c8869ade8fc4039b (patch)
treece04b06d66066bc11ebb34cef0cdd53168847d3f
parent6e7de970f07ae1d4457227bd2fc3f8d9b97c7f5d (diff)
downloadpfsense-packages-45d19c10894572582363e387c8869ade8fc4039b.tar.gz
pfsense-packages-45d19c10894572582363e387c8869ade8fc4039b.tar.bz2
pfsense-packages-45d19c10894572582363e387c8869ade8fc4039b.zip
Fix minor HTML property bug for textarea controls on Chrome
-rwxr-xr-xconfig/snort/snort_rules.php2
-rwxr-xr-xconfig/snort/snort_rules_edit.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php
index 59bf1339..46c3c264 100755
--- a/config/snort/snort_rules.php
+++ b/config/snort/snort_rules.php
@@ -399,7 +399,7 @@ h += 96;
<input type='hidden' name='openruleset' value='custom.rules'>
<input type='hidden' name='id' value='<?=$id;?>'>
- <textarea wrap="on" cols="85" rows="40" name="customrules"><?=$pconfig['customrules'];?></textarea>
+ <textarea wrap="soft" cols="85" rows="40" name="customrules"><?=$pconfig['customrules'];?></textarea>
</td>
<td width="3%" class="list">&nbsp;</td>
</tr>
diff --git a/config/snort/snort_rules_edit.php b/config/snort/snort_rules_edit.php
index 7005d1f8..a1f45c07 100755
--- a/config/snort/snort_rules_edit.php
+++ b/config/snort/snort_rules_edit.php
@@ -72,7 +72,7 @@ if (substr($file, 0, 10) == "IPS Policy") {
$rules_map = snort_load_vrt_policy($a_rule[$id]['ips_policy']);
if (isset($_GET['ids'])) {
$contents = $rules_map[$_GET['gid']][trim($_GET['ids'])]['rule'];
- $wrap_flag = "on";
+ $wrap_flag = "soft";
}
else {
$contents = "# Snort IPS Policy - " . ucfirst($a_rule[$id]['ips_policy']) . "\n\n";
@@ -89,7 +89,7 @@ if (substr($file, 0, 10) == "IPS Policy") {
elseif (isset($_GET['ids'])) {
$rules_map = snort_load_rules_map("{$snortdir}/rules/{$file}");
$contents = $rules_map[$_GET['gid']][trim($_GET['ids'])]['rule'];
- $wrap_flag = "on";
+ $wrap_flag = "soft";
}
// Is it our special flowbit rules file?
elseif ($file == $flowbit_rules_file)