chrome-simply-proxy icon indicating copy to clipboard operation
chrome-simply-proxy copied to clipboard

Issue with redirect

Open xstable opened this issue 2 years ago • 1 comments

Generally the Plugin work well, but, I do have the following issue.

How to reproduce:

  1. Create a file index.php and put this inside:

    var_dump($_SERVER['REQUEST_URI']);
    
  2. run php -S 127.0.0.1:7777/index.php on cli to run this side with the build-in php webserver

  3. Open the Address 127.0.0.1:7777 in your browser you'll see: image

  4. create an entry for simple-proxy extension: image

  5. enter test.com in your browser. You'll see: image

The issue

The issue is, that the kind of redirect crash the internal PHP-Variable $_SERVER['REQUIRE_URI']. Instead showing / (means, only the uri-PATH, it shows the whole URI including the protocol and domainname.

Why is this a problem? If you - for example - redirect to a Page which use this $_SERVER['REQUIRE_URI'], the webpage won't be available or work in any way.

Info that might help:

see: https://www.php.net/manual/en/reserved.variables.server.php#121469

xstable avatar Mar 22 '22 12:03 xstable

@Riant do you have any Idea about that? Would love to use your extension

xstable avatar Jun 16 '22 15:06 xstable