Skip to content

Better trim base_url#4423

Merged
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:more-robust-base_url
Jun 21, 2022
Merged

Better trim base_url#4423
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:more-robust-base_url

Conversation

@Alkarex
Copy link
Copy Markdown
Member

@Alkarex Alkarex commented Jun 20, 2022

Avoid usual errors for instance with quotes, especially when provided through Docker / CLI

Avoid usual errors for instance with quotes, especially when provided through Docker / CLI
@Alkarex Alkarex added this to the 1.20.0 milestone Jun 20, 2022
public static function getBaseUrl(): string {
$conf = Minz_Configuration::get('system');
$url = rtrim($conf->base_url, '/\\');
$url = trim($conf->base_url, ' /\\"');
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the relevant change

@Alkarex Alkarex merged commit 47ab9d5 into FreshRSS:edge Jun 21, 2022
@Alkarex Alkarex deleted the more-robust-base_url branch June 21, 2022 08:46
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

Successfully merging this pull request may close these issues.

1 participant