File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8585 exit (serialize ($ result ));
8686
8787 default :
88- if (!empty ($ result ['rawdata ' ])) {
89- $ winfo .= '<pre> ' . implode ($ result ['rawdata ' ], "\n" ) . '</pre> ' ;
88+ if (!empty ($ result ['rawdata ' ]) && is_array ( $ result [ ' rawdata ' ]) ) {
89+ $ winfo .= '<pre> ' . implode ("\n" , $ result ['rawdata ' ]) . '</pre> ' ;
9090 } else {
91- $ winfo = implode ($ whois -> query [ ' errstr ' ], "\n<br></br> " );
91+ $ winfo = implode ("\n<br></br> " , ( array ) $ whois -> query [ ' errstr ' ] );
9292 }
93+ break ;
9394 }
9495
9596}
Original file line number Diff line number Diff line change @@ -128,7 +128,10 @@ function ($matches) {
128128 $ link = $ _SERVER ['PHP_SELF ' ] . '? ' . $ params ;
129129 }
130130
131- $ out = preg_replace ($ ip_regex , '<a href=" ' . $ link . '">$0</a> ' , $ out );
131+ if (strpos ($ out , '<a href= ' ) === false ) {
132+ $ out = preg_replace ($ ip_regex , '<a href=" ' . $ link . '">$0</a> ' , $ out );
133+ }
134+
132135
133136 if (isset ($ result ['regrinfo ' ]['domain ' ]['nserver ' ])) {
134137 $ nserver = $ result ['regrinfo ' ]['domain ' ]['nserver ' ];
You can’t perform that action at this time.
0 commit comments