ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Bender/Bender.cpp
(Generate patch)

Comparing Bender/Bender.cpp (file contents):
Revision 121 by Douglas Thrift, 2004-03-18T23:26:40-08:00 vs.
Revision 123 by Douglas Thrift, 2004-03-20T18:32:11-08:00

# Line 73 | Line 73 | void Bender::bend(const string& path, co
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          {
# Line 122 | Line 105 | void Bender::bend(const string& path)
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                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines