@@ -15,10 +15,10 @@ public function __construct(RequestContext $context)
15
15
$ this ->context = $ context ;
16
16
}
17
17
18
- public function match ($ pathinfo )
18
+ public function match ($ rawPathinfo )
19
19
{
20
20
$ allow = array ();
21
- $ pathinfo = rawurldecode ($ pathinfo );
21
+ $ pathinfo = rawurldecode ($ rawPathinfo );
22
22
$ trimmedPathinfo = rtrim ($ pathinfo , '/ ' );
23
23
$ context = $ this ->context ;
24
24
$ request = $ this ->request ;
@@ -57,7 +57,7 @@ public function match($pathinfo)
57
57
// a_fourth
58
58
if ('/a/44 ' === $ trimmedPathinfo ) {
59
59
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
60
- return $ this ->redirect ($ pathinfo .'/ ' , 'a_fourth ' );
60
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'a_fourth ' );
61
61
}
62
62
63
63
return array ('_route ' => 'a_fourth ' );
@@ -66,7 +66,7 @@ public function match($pathinfo)
66
66
// a_fifth
67
67
if ('/a/55 ' === $ trimmedPathinfo ) {
68
68
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
69
- return $ this ->redirect ($ pathinfo .'/ ' , 'a_fifth ' );
69
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'a_fifth ' );
70
70
}
71
71
72
72
return array ('_route ' => 'a_fifth ' );
@@ -75,7 +75,7 @@ public function match($pathinfo)
75
75
// a_sixth
76
76
if ('/a/66 ' === $ trimmedPathinfo ) {
77
77
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
78
- return $ this ->redirect ($ pathinfo .'/ ' , 'a_sixth ' );
78
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'a_sixth ' );
79
79
}
80
80
81
81
return array ('_route ' => 'a_sixth ' );
@@ -92,7 +92,7 @@ public function match($pathinfo)
92
92
// nested_a
93
93
if ('/nested/group/a ' === $ trimmedPathinfo ) {
94
94
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
95
- return $ this ->redirect ($ pathinfo .'/ ' , 'nested_a ' );
95
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'nested_a ' );
96
96
}
97
97
98
98
return array ('_route ' => 'nested_a ' );
@@ -101,7 +101,7 @@ public function match($pathinfo)
101
101
// nested_b
102
102
if ('/nested/group/b ' === $ trimmedPathinfo ) {
103
103
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
104
- return $ this ->redirect ($ pathinfo .'/ ' , 'nested_b ' );
104
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'nested_b ' );
105
105
}
106
106
107
107
return array ('_route ' => 'nested_b ' );
@@ -110,7 +110,7 @@ public function match($pathinfo)
110
110
// nested_c
111
111
if ('/nested/group/c ' === $ trimmedPathinfo ) {
112
112
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
113
- return $ this ->redirect ($ pathinfo .'/ ' , 'nested_c ' );
113
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'nested_c ' );
114
114
}
115
115
116
116
return array ('_route ' => 'nested_c ' );
@@ -122,7 +122,7 @@ public function match($pathinfo)
122
122
// slashed_a
123
123
if ('/slashed/group ' === $ trimmedPathinfo ) {
124
124
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
125
- return $ this ->redirect ($ pathinfo .'/ ' , 'slashed_a ' );
125
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'slashed_a ' );
126
126
}
127
127
128
128
return array ('_route ' => 'slashed_a ' );
@@ -131,7 +131,7 @@ public function match($pathinfo)
131
131
// slashed_b
132
132
if ('/slashed/group/b ' === $ trimmedPathinfo ) {
133
133
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
134
- return $ this ->redirect ($ pathinfo .'/ ' , 'slashed_b ' );
134
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'slashed_b ' );
135
135
}
136
136
137
137
return array ('_route ' => 'slashed_b ' );
@@ -140,7 +140,7 @@ public function match($pathinfo)
140
140
// slashed_c
141
141
if ('/slashed/group/c ' === $ trimmedPathinfo ) {
142
142
if (substr ($ pathinfo , -1 ) !== '/ ' ) {
143
- return $ this ->redirect ($ pathinfo .'/ ' , 'slashed_c ' );
143
+ return $ this ->redirect ($ rawPathinfo .'/ ' , 'slashed_c ' );
144
144
}
145
145
146
146
return array ('_route ' => 'slashed_c ' );
0 commit comments