Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:18:54 +0000 (16:18 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:18:54 +0000 (16:18 +0800)
Iptables.php

index 838f755..082bb23 100644 (file)
@@ -207,6 +207,9 @@ class Pman_Admin_Iptables extends Pman {
             
             // got input rules now..
             if (!empty($row['comment'])) {
+                
+                $row['comment'] = preg_replace('#^/\*#', '', trim($row['comment']) );
+                $row['comment'] = preg_replace('#\*/$#', '', $row['comment'] );
                 foreach((array)json_decode($row['comment']) as $k=>$v) {
                     $row[$k] = $v;
                 }