67 |
|
else if (agent == matcher(string("^Mozilla/4.0 \\(compatible; MSIE (\\d+)") |
68 |
|
+ "\\.(\\d+)(\\w+)?; .*\\)$")) |
69 |
|
{ |
70 |
< |
// |
70 |
> |
int version; |
71 |
> |
istringstream number(matcher[1]); |
72 |
|
|
73 |
< |
pass(path); |
73 |
> |
number >> version; |
74 |
> |
|
75 |
> |
if (version >= 6) |
76 |
> |
{ |
77 |
> |
pass(path); |
78 |
> |
} |
79 |
> |
else |
80 |
> |
{ |
81 |
> |
bend(path); |
82 |
> |
} |
83 |
|
} |
84 |
|
else if (agent == matcher(string("^Mozilla/5.0 \\(.*; rv:(\\d+)\\.(\\d+)(") |
85 |
|
+ "\\.d+)?(\\w+)?\\) Gecko\\/.*")) |
86 |
|
{ |
87 |
< |
// |
88 |
< |
|
89 |
< |
pass(path); |
87 |
> |
int major, minor; |
88 |
> |
istringstream number(matcher[1] + ' ' + matcher[2]); |
89 |
> |
|
90 |
> |
number >> major; |
91 |
> |
number >> minor; |
92 |
> |
|
93 |
> |
if (major > 1 || (major == 1 && minor >= 5)) |
94 |
> |
{ |
95 |
> |
pass(path); |
96 |
> |
} |
97 |
> |
else |
98 |
> |
{ |
99 |
> |
bend(path); |
100 |
> |
} |
101 |
|
} |
102 |
|
else |
103 |
|
{ |