mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-19 21:58:08 -04:00
wipfix: correct contatenation of options
This commit is contained in:
@@ -49,11 +49,11 @@ abstract class AbstractProxy
|
|||||||
*/
|
*/
|
||||||
public function __construct(Configuration $conf, string $link)
|
public function __construct(Configuration $conf, string $link)
|
||||||
{
|
{
|
||||||
if (!filter_var($link, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED & FILTER_FLAG_QUERY_REQUIRED)) {
|
if (!filter_var($link, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED | FILTER_FLAG_QUERY_REQUIRED)) {
|
||||||
$this->_error = 'Invalid URL given.';
|
$this->_error = 'Invalid URL given.';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!str_starts_with($link, $conf->getKey('basepath') . '?') ||
|
if (!str_starts_with($link, $conf->getKey('basepath') . '?') ||
|
||||||
parse_url($link, PHP_URL_HOST) != parse_url($conf->getKey('basepath'), PHP_URL_HOST)
|
parse_url($link, PHP_URL_HOST) != parse_url($conf->getKey('basepath'), PHP_URL_HOST)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user