We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e5a93a + 0595954 commit 0cd1183Copy full SHA for 0cd1183
src/Plugin/AbstractPlugin.php
@@ -32,8 +32,16 @@ final public function route(ProxyEvent $event){
32
$url = $event['request']->getUri();
33
34
// url filter provided and current request url does not match it
35
- if($this->url_pattern && strpos($url, $this->url_pattern) === false){
36
- return;
+ if($this->url_pattern){
+ if(strpos($this->url_pattern, '/') === 0){
37
+ if(!preg_match($this->url_pattern, $url))
38
+ return;
39
+ }
40
+ else
41
+ {
42
+ if(stripos($url, $this->url_pattern) === false)
43
44
45
}
46
47
switch($event->getName()){
@@ -66,4 +74,4 @@ final public static function getSubscribedEvents(){
66
74
67
75
68
76
69
-?>
77
+?>
0 commit comments