~grubng-dev/grubng/tools-urlsdb

« back to all changes in this revision

Viewing changes to ParseURLs.cs

  • Committer: thindil
  • Date: 2011-05-13 08:00:16 UTC
  • Revision ID: thindil2@gmail.com-20110513080016-271tcwgco98qnvmt
better URL cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
                        //Remove sessions id's from path
104
104
                        if (path.Length > 1)
105
105
                        {
106
 
                                path = Regex.Replace(path, @"(PHPSESSID|s)=[a-z0-9]{32}(&|&)*", String.Empty, RegexOptions.IgnoreCase);
 
106
                                path = Regex.Replace(path, @"(PHPSESSID|s|ses)=[a-z0-9]{32}(&|&)*", String.Empty, RegexOptions.IgnoreCase);
107
107
                                path = path.TrimEnd(new char[] {'&', '?'});
108
108
                                if (path.LastIndexOf("&") == (path.Length - 5))
109
109
                                {