Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server detail - issue with s parameter #6

Open
Jimmi08 opened this issue Jan 2, 2024 · 3 comments
Open

server detail - issue with s parameter #6

Jimmi08 opened this issue Jan 2, 2024 · 3 comments

Comments

@Jimmi08
Copy link
Member

Jimmi08 commented Jan 2, 2024

There is this code:

$s = isset($_GET['s']) ? $_GET['s'] : "";
 
if (is_numeric($s))
{
  $lgsl_server_id = $s;
  require "lgsl_files/lgsl_details.php";
}

Server identificator has to be numeric but it is IP like /index.php?s=99.99.999.999

Questions:
it is intention?
it is problem with link to detail?
or
it is problem with parameters processing?

This sounds so familiar... I just can't remember what was fix.

@Jimmi08
Copy link
Member Author

Jimmi08 commented Jan 2, 2024

there is preference to show IP
$lgsl_config['host_to_ip']

@Jimmi08
Copy link
Member Author

Jimmi08 commented Jan 2, 2024

With IP off I run into this issue:
your IP is ts3.501stlegion-a3.com
but when I use var_dump() it is ts3.501stlegion-a3.c​om​

so the detail URL is wrong. As soon as I manually fix it, it works.
this is changing it:

$server = lgsl_server_html($server);

@Jimmi08
Copy link
Member Author

Jimmi08 commented Jan 2, 2024

After last commit, but there are issues with HTML entities in URL sometimes.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant