73 |
|
{ |
74 |
|
bend(path); |
75 |
|
} |
76 |
– |
else if (agent == matcher(string("^Mozilla/4.0 \\(compatible; MSIE (\\d+)") |
77 |
– |
+ "\\.(\\d+)(\\w+)?; .*\\)$")) |
78 |
– |
{ |
79 |
– |
int version; |
80 |
– |
istringstream number(matcher[1]); |
81 |
– |
|
82 |
– |
number >> version; |
83 |
– |
|
84 |
– |
if (version >= 6) |
85 |
– |
{ |
86 |
– |
pass(path); |
87 |
– |
} |
88 |
– |
else |
89 |
– |
{ |
90 |
– |
bend(path); |
91 |
– |
} |
92 |
– |
} |
76 |
|
else if (agent == matcher(string("^Mozilla/5.0 \\(.*; rv:(\\d+)\\.(\\d+)(") |
77 |
|
+ "\\.d+)?(\\w+)?\\) Gecko\\/.*")) |
78 |
|
{ |
105 |
|
if (transformer.transform(path.c_str(), output) == 0) |
106 |
|
{ |
107 |
|
string type = "text/html; charset=ISO-8859-1"; |
108 |
< |
Matcher matcher("<META http-equiv=\"Content-Type\" content=\"(.*)\">"); |
108 |
> |
Matcher matcher("http-equiv=\"Content-Type\" content=\"(.*)\""); |
109 |
|
|
110 |
|
if (matcher == output.str()) |
111 |
|
{ |