Skip to content

Port repeating himself on localhost (with custom port) #124

@PulsarFox

Description

@PulsarFox

I've launched a Symfony project, and I use the built in webserver which launches me a server hosted on http://localhost:8000.

When I try to work with SPARQLScript, I've noticed some weird value in the BASE field on the SparlScript array : the port is repeated twice, that gives me BASE : http://localhost:8000:8000/api/user/new

The problems comes from the function getRequestUri() on the ARC2.php file as the $_SERVER['SERVER_NAME'] value gives me "http://localhost:8000/api/user/new" and my variable $_SERVER['SERVER_PORT'] is of course 8000.

Unfortunately I don't have time to fix it myself

EDIT: The same thing happens in the function getScriptURI()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwaiting for feedbackWaiting for essential feedback of one of the parties in the conversation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions