Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6.0-b1
-
Component/s: None
-
Labels:None
Description
See https://github.com/blesta/module-pterodactyl/issues/66
In components/modules/pterodactyl/pterodactyl.php around line 408 change
'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return $validator->isDomain($parts[0]) || $validator->isIp($parts[0]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ],
To
'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return ($validator->isDomain($parts[0]) || $validator->isIp($parts[0])) && (!isset($parts[1]) || is_numeric($parts[1])); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ],
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Story Points | 1 |
Jonathan Reissmueller
made changes -
Description |
In components/modules/pterodactyl/pterodactyl.php around line 408 change
{code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return $validator->isDomain($parts[0]) || $validator->isIp($parts[0]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} To {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return ($validator->isDomain($parts[0]) || $validator->isIp($parts[0])) && is_numeric($parts[1]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} |
See https://github.com/blesta/module-pterodactyl/issues/66 In components/modules/pterodactyl/pterodactyl.php around line 408 change {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return $validator->isDomain($parts[0]) || $validator->isIp($parts[0]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} To {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return ($validator->isDomain($parts[0]) || $validator->isIp($parts[0])) && is_numeric($parts[1]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} |
Jonathan Reissmueller
made changes -
Security | Private [ 10000 ] |
Jonathan Reissmueller
made changes -
Description |
See https://github.com/blesta/module-pterodactyl/issues/66 In components/modules/pterodactyl/pterodactyl.php around line 408 change {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return $validator->isDomain($parts[0]) || $validator->isIp($parts[0]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} To {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return ($validator->isDomain($parts[0]) || $validator->isIp($parts[0])) && is_numeric($parts[1]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} |
See https://github.com/blesta/module-pterodactyl/issues/66
In components/modules/pterodactyl/pterodactyl.php around line 408 change {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return $validator->isDomain($parts[0]) || $validator->isIp($parts[0]); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} To {code:java} 'host_name' => [ 'valid' => [ 'rule' => function ($host_name) { $validator = new Server(); $parts = explode(':', $host_name); return ($validator->isDomain($parts[0]) || $validator->isIp($parts[0])) && (!isset($parts[1]) || is_numeric($parts[1])); }, 'message' => Language::_('Pterodactyl.!error.host_name.valid', true) ] ], {code} |
Jonathan Reissmueller
made changes -
Security | Private [ 10000 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.6.0 Sprint 1 [ 156 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.6.0 Sprint 1 [ 156 ] | 5.6.0/5.5.1 [ 166 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked lower |
Abdy Franco
made changes -
Assignee | Abdy Franco [ abdy ] |
Abdy Franco
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Abdy Franco
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Abdy Franco
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 13 minutes [ 780 ] | |
Worklog Id | 15937 [ 15937 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.6.0 Sprint 1/5.5.1 [ 166 ] | 5.6.0 Sprint 1/5.5.1, 5.6.0 Sprint 2 [ 166, 167 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |