diff --git a/Website+Backend/inputView.php b/Website+Backend/inputView.php index 8c3f61a..26c0b4f 100644 --- a/Website+Backend/inputView.php +++ b/Website+Backend/inputView.php @@ -96,7 +96,7 @@ function __construct($it) { function current() { $text = wordwrap(parent::current(), 100, "\n", false); - return "" . $text . ""; + return "" . ( filter_var($text, FILTER_VALIDATE_IP) ? ''.$text.'' : $text) . ""; } function beginChildren() { diff --git a/Website+Backend/view.php b/Website+Backend/view.php index f210b85..0a47a8e 100644 --- a/Website+Backend/view.php +++ b/Website+Backend/view.php @@ -90,7 +90,7 @@ function __construct($it) { } function current() { - return "" . parent::current(). ""; + return "" . ( filter_var(parent::current(), FILTER_VALIDATE_IP) ? ''.parent::current().'' : parent::current()) . ""; } function beginChildren() {