Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow *.{miraheze,wikitide}.org and the custom domain for TemplateStyles #5663

Merged

Conversation

BlankEclair
Copy link
Contributor

Currently, /w/img_auth.php URLs cannot be used for TemplateStyles, which is problematic for private wikis (example: #general in Discord/#miraheze-offtopic on IRC, at 2024-09-17 10:17:35 UTC).

We allow [a-zA-Z0-9\-]\.(miraheze|wikitide)\.org/w/img_auth.php for Miraheze controlled domains, and {$wi->server}/w/img_auth.php for custom domains. In the event that the wiki is not a custom domain, it will fallback to the Miraheze domain and would effectively be a no-op.

Currently, /w/img_auth.php URLs cannot be used for TemplateStyles, which is
problematic for private wikis (example: #general in Discord/#miraheze-offtopic
on IRC, at 2024-09-17 10:17:35 UTC).

We allow `[a-zA-Z0-9\-]\.(miraheze|wikitide)\.org/w/img_auth.php` for Miraheze
controlled domains, and `{$wi->server}/w/img_auth.php` for custom domains. In
the event that the wiki is not a custom domain, it will fallback to the
Miraheze domain and would effectively be a no-op.
@Universal-Omega Universal-Omega merged commit 22e0b1d into miraheze:master Sep 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants