krz/ifconfig.php

A private ifconfig service.

clone: git clone https://gitbay.org/krz/ifconfig.php.git

725aeaabc6cc665e1e1f22a72a8a869541870e8d

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-05-25T01:13:30Z

fix overflowing lines
 ifconfig.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ifconfig.php b/ifconfig.php
index b70b72f..b477140 100644
--- a/ifconfig.php
+++ b/ifconfig.php
@@ -65,6 +65,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
 		<title>{$site_title}</title>
 		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
 		<style>
+		  body { overflow-wrap: break-word; }
 			pre { padding: 0.5rem; border: 1px solid black; }
 			p,a { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; }
 			small, small > a { font-size: 9pt; }
@@ -89,7 +90,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
 	foreach($user as $key => $value) {
 		echo '	<p id="'.$key.'">'.$key.': '.$value.'</p>'."\n";
 	}
-	
+
 	echo <<<EOD
 	<pre><code># Curl Commands:
 	curl -L -X GET https://ip.cleberg.net