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 85
85
exit (serialize ($ result ));
86
86
87
87
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> ' ;
90
90
} else {
91
- $ winfo = implode ($ whois -> query [ ' errstr ' ], "\n<br></br> " );
91
+ $ winfo = implode ("\n<br></br> " , ( array ) $ whois -> query [ ' errstr ' ] );
92
92
}
93
+ break ;
93
94
}
94
95
95
96
}
Original file line number Diff line number Diff line change @@ -128,7 +128,10 @@ function ($matches) {
128
128
$ link = $ _SERVER ['PHP_SELF ' ] . '? ' . $ params ;
129
129
}
130
130
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
+
132
135
133
136
if (isset ($ result ['regrinfo ' ]['domain ' ]['nserver ' ])) {
134
137
$ nserver = $ result ['regrinfo ' ]['domain ' ]['nserver ' ];
You can’t perform that action at this time.
0 commit comments