c3fd7d1a6172a1133cb33f55a92985f6d34779db,classifier4gyoithon/GyoiClassifier.py,,check_arg_value,#,237
Before Change
// Check virtual host.
if isinstance(vhost, str) is False and isinstance(vhost, int) is False:
print("[*] Invalid vhost: {0}".format(vhost))
return False
// Check url.
if url is not None:
target = urlparse(url)
if "http" not in target.scheme:
print("[*] Invalid scheme : {0}.".format(target.scheme))
return False
if target.netloc == "":
print("[*] Invalid fqdn : {0}.".format(target.netloc))
After Change
// Check virtual host.
if isinstance(vhost, str) is False and isinstance(vhost, int) is False:
Utilty().print_message(FAIL, "Invalid vhost: {}".format(vhost))
return False
// Check url.
if url is not None:
target = util.parse_url(url)
if "http" not in target.scheme:
Utilty().print_message(FAIL, "Invalid scheme : {}.".format(target.scheme))
return False
if target.netloc == "":
Utilty().print_message(FAIL, "Invalid fqdn : {}.".format(target.netloc))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: gyoisamurai/GyoiThon
Commit Name: c3fd7d1a6172a1133cb33f55a92985f6d34779db
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name: check_arg_value
Project Name: gyoisamurai/GyoiThon
Commit Name: c3fd7d1a6172a1133cb33f55a92985f6d34779db
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name: check_arg_value