Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
afa18f1b
Unverified
Commit
afa18f1b
authored
4 years ago
by
Patrick Cloke
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clarify documentation about escaping URLs in templates. (#9310)
parent
7a0dcea3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/9310.doc
+1
-0
1 addition, 0 deletions
changelog.d/9310.doc
docs/sample_config.yaml
+4
-10
4 additions, 10 deletions
docs/sample_config.yaml
synapse/config/sso.py
+4
-10
4 additions, 10 deletions
synapse/config/sso.py
with
9 additions
and
20 deletions
changelog.d/9310.doc
0 → 100644
+
1
−
0
View file @
afa18f1b
Clarify the sample configuration for changes made to the template loading code.
This diff is collapsed.
Click to expand it.
docs/sample_config.yaml
+
4
−
10
View file @
afa18f1b
...
@@ -1961,8 +1961,7 @@ sso:
...
@@ -1961,8 +1961,7 @@ sso:
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
# * redirect_url: the URL that the user will be redirected to after
# * redirect_url: the URL that the user will be redirected to after
# login. Needs manual escaping (see
# login.
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * server_name: the homeserver's name.
# * server_name: the homeserver's name.
#
#
...
@@ -2040,15 +2039,12 @@ sso:
...
@@ -2040,15 +2039,12 @@ sso:
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
#
#
# * redirect_url: the URL the user is about to be redirected to. Needs
# * redirect_url: the URL the user is about to be redirected to.
# manual escaping (see
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * display_url: the same as `redirect_url`, but with the query
# * display_url: the same as `redirect_url`, but with the query
# parameters stripped. The intention is to have a
# parameters stripped. The intention is to have a
# human-readable URL to show to users, not to use it as
# human-readable URL to show to users, not to use it as
# the final address to redirect to. Needs manual escaping
# the final address to redirect to.
# (see https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * server_name: the homeserver's name.
# * server_name: the homeserver's name.
#
#
...
@@ -2068,9 +2064,7 @@ sso:
...
@@ -2068,9 +2064,7 @@ sso:
# process: 'sso_auth_confirm.html'.
# process: 'sso_auth_confirm.html'.
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
# * redirect_url: the URL the user is about to be redirected to. Needs
# * redirect_url: the URL the user is about to be redirected to.
# manual escaping (see
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * description: the operation which the user is being asked to confirm
# * description: the operation which the user is being asked to confirm
#
#
...
...
This diff is collapsed.
Click to expand it.
synapse/config/sso.py
+
4
−
10
View file @
afa18f1b
...
@@ -106,8 +106,7 @@ class SSOConfig(Config):
...
@@ -106,8 +106,7 @@ class SSOConfig(Config):
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
# * redirect_url: the URL that the user will be redirected to after
# * redirect_url: the URL that the user will be redirected to after
# login. Needs manual escaping (see
# login.
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * server_name: the homeserver
'
s name.
# * server_name: the homeserver
'
s name.
#
#
...
@@ -185,15 +184,12 @@ class SSOConfig(Config):
...
@@ -185,15 +184,12 @@ class SSOConfig(Config):
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
#
#
# * redirect_url: the URL the user is about to be redirected to. Needs
# * redirect_url: the URL the user is about to be redirected to.
# manual escaping (see
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * display_url: the same as `redirect_url`, but with the query
# * display_url: the same as `redirect_url`, but with the query
# parameters stripped. The intention is to have a
# parameters stripped. The intention is to have a
# human-readable URL to show to users, not to use it as
# human-readable URL to show to users, not to use it as
# the final address to redirect to. Needs manual escaping
# the final address to redirect to.
# (see https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * server_name: the homeserver
'
s name.
# * server_name: the homeserver
'
s name.
#
#
...
@@ -213,9 +209,7 @@ class SSOConfig(Config):
...
@@ -213,9 +209,7 @@ class SSOConfig(Config):
# process:
'
sso_auth_confirm.html
'
.
# process:
'
sso_auth_confirm.html
'
.
#
#
# When rendering, this template is given the following variables:
# When rendering, this template is given the following variables:
# * redirect_url: the URL the user is about to be redirected to. Needs
# * redirect_url: the URL the user is about to be redirected to.
# manual escaping (see
# https://jinja.palletsprojects.com/en/2.11.x/templates/#html-escaping).
#
#
# * description: the operation which the user is being asked to confirm
# * description: the operation which the user is being asked to confirm
#
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment