04-25-2017, 10:00 AM
I have installed UserSpice v 4.2.6 on Windows 10 running Ampps. My favoured browser is Firefox.
I have not added any additional pages, but the redirect problem shows on some links after logging in.
A possible explanation can be found on https://ctrl.blog/entry/relative-double-slashes-url
A quick fix might be to make this change to users/classes/Redirect.php
from
<pre></pre>
to
<pre></pre>
The additional code will replace all multiple occurrences of a slash with a single slash before being used by redirect.
I have not added any additional pages, but the redirect problem shows on some links after logging in.
A possible explanation can be found on https://ctrl.blog/entry/relative-double-slashes-url
A quick fix might be to make this change to users/classes/Redirect.php
from
<pre>
Code:
if (file_exists($prefix.$location)) {
$location = $prefix.$location;
break;
}
to
<pre>
Code:
if (file_exists($prefix.$location)) {
$location = $prefix.$location;
$location = preg_replace('~/{2,}~', '/', $location);
break;
}
The additional code will replace all multiple occurrences of a slash with a single slash before being used by redirect.