Commit e2663e7f authored by Roque's avatar Roque

drop obsolete zope2 patch (not referenced anymore)

parent 01fac942
From e98fd4d593699ee33c7ae29bd559488ef68e4fa2 Mon Sep 17 00:00:00 2001
From: Vincent Bechu <vincent.bechu@nexedi.com>
Date: Thu, 25 Oct 2018 14:55:49 +0200
Subject: [PATCH] [Products/SiteAccess] handle wildcard on rewrite url
---
src/Products/SiteAccess/VirtualHostMonster.py | 2 ++
src/Products/SiteAccess/tests/testVirtualHostMonster.py | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/Products/SiteAccess/VirtualHostMonster.py b/src/Products/SiteAccess/VirtualHostMonster.py
index 046d38c00..47a9e3c57 100644
--- a/src/Products/SiteAccess/VirtualHostMonster.py
+++ b/src/Products/SiteAccess/VirtualHostMonster.py
@@ -173,6 +173,8 @@ class VirtualHostMonster(Persistent, Item, Implicit):
stack[ii] = self.id
stack.insert(ii, '/')
ii += 1
+ if '*' in stack:
+ stack[stack.index('*')] = host.split('.')[0]
path = stack[:ii]
# If the directive is on top of the stack, go ahead
# and process it right away.
--
2.11.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment