mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle reverse engineering of synonyms with / in the name. Fixes #1622
This commit is contained in:
parent
2d39b5fb41
commit
dd6a69d845
@ -149,8 +149,13 @@ class SynonymView(PGChildNodeView):
|
||||
{'type': 'int', 'id': 'did'},
|
||||
{'type': 'int', 'id': 'scid'}
|
||||
]
|
||||
# If URL has an identifier containing slash character '/'
|
||||
# into the URI, then set param type to path. Because if
|
||||
# param name contains '/' in syid, it gets confused and
|
||||
# wrong url is generated.
|
||||
# Reference:- http://flask.pocoo.org/snippets/76/
|
||||
ids = [
|
||||
{'type': 'string', 'id': 'syid'}
|
||||
{'type': 'path', 'id': 'syid'}
|
||||
]
|
||||
|
||||
operations = dict({
|
||||
|
Loading…
Reference in New Issue
Block a user