diff options
author | IWAMOTO Toshihiro <iwamoto@valinux.co.jp> | 2018-07-11 13:51:48 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-15 15:53:40 +0900 |
commit | 2c6a053f8d2fa48a59a1c43abce0a4981548a541 (patch) | |
tree | 11594b56215eada8d97bec73087a9fcec731d647 | |
parent | b9909d06862454d4907c29b0688788ab80406f9b (diff) |
gui_topology: Avoid wildcard URL matching
GUIServerController eats up the entire URL space and sometimes causes
problems. See the following thread in ryu-devel for example:
https://sourceforge.net/p/ryu/mailman/message/36312411/
Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/app/gui_topology/gui_topology.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/app/gui_topology/gui_topology.py b/ryu/app/gui_topology/gui_topology.py index ed4857a5..cbac4d8f 100644 --- a/ryu/app/gui_topology/gui_topology.py +++ b/ryu/app/gui_topology/gui_topology.py @@ -56,7 +56,7 @@ class GUIServerController(ControllerBase): path = "%s/html/" % PATH self.static_app = DirectoryApp(path) - @route('topology', '/{filename:.*}') + @route('topology', '/{filename:[^/]*}') def static_handler(self, req, **kwargs): if kwargs['filename']: req.path_info = kwargs['filename'] |