File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public function set_scan_type ($type) {
296
296
public function set_ping_type () {
297
297
//validate
298
298
if (!in_array ($ this ->config ->method , $ this ->ping_types )) {
299
- $ this ->Result ->throw_exception (500 , "Invalid ping type - $ this ->ping_type ! " );
299
+ $ this ->Result ->throw_exception (500 , "Invalid ping method - \$ config['method'] = \"" . escape_input ( $ this ->config -> method ). "\" " );
300
300
}
301
301
// ok, save
302
302
$ this ->ping_type = $ this ->config ->method ;
@@ -357,7 +357,7 @@ private function validate_threading () {
357
357
*/
358
358
private function validate_ping_path () {
359
359
if (!file_exists ($ this ->config ->pingpath )) {
360
- $ this ->Result ->throw_exception (500 , "Invalid ping path! " );
360
+ $ this ->Result ->throw_exception (500 , "ping executable does not exist - \$ config['pingpath'] = \"" . escape_input ( $ this -> config -> pingpath ). "\" " );
361
361
}
362
362
}
363
363
You can’t perform that action at this time.
0 commit comments