[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.30,1.31 UriBuilder.cs
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.30,1.31 UriBuilder.cs,1.9,1.10 System.build,1.8,1.9 |
Date: |
Mon, 18 Nov 2002 16:44:49 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System
In directory subversions:/tmp/cvs-serv23869/System
Modified Files:
Uri.cs UriBuilder.cs System.build
Log Message:
Fill in HttpWebRespose and some minor bugs as well
Index: Uri.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Uri.cs,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** Uri.cs 18 Nov 2002 18:58:03 -0000 1.30
--- Uri.cs 18 Nov 2002 21:44:45 -0000 1.31
***************
*** 782,798 ****
if (!userEscaped)
{
! if (needsEscaping(path))
// Escape() only affects path
this.Escape();
! if (needsEscaping(query))
query = EscapeString(query);
! if (needsEscaping(fragment))
fragment = EscapeString(fragment);
}
else // user should have escaped
{
! if (needsEscaping(path)
! || needsEscaping(query)
! || needsEscaping(fragment))
throw new
UriFormatException(S._("Arg_UriNotEscaped"));
}
--- 782,798 ----
if (!userEscaped)
{
! if (needsEscaping(path,false))
// Escape() only affects path
this.Escape();
! if (needsEscaping(query,true))
query = EscapeString(query);
! if (needsEscaping(fragment,true))
fragment = EscapeString(fragment);
}
else // user should have escaped
{
! if (needsEscaping(path,false)
! || needsEscaping(query,true)
! || needsEscaping(fragment,true))
throw new
UriFormatException(S._("Arg_UriNotEscaped"));
}
***************
*** 1199,1203 ****
}
! internal static bool needsEscaping(String instr)
{
char c;
--- 1199,1204 ----
}
! /* do not escape reserved chars for paths */
! internal static bool needsEscaping(String instr,bool reservedCheck)
{
char c;
***************
*** 1205,1209 ****
{
c = instr[i];
! if (IsExcludedCharacter(c) || IsReserved(c))
return true;
}
--- 1206,1210 ----
{
c = instr[i];
! if (IsExcludedCharacter(c) || (IsReserved(c) &&
reservedCheck))
return true;
}
Index: UriBuilder.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/UriBuilder.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** UriBuilder.cs 27 May 2002 19:40:27 -0000 1.9
--- UriBuilder.cs 18 Nov 2002 21:44:45 -0000 1.10
***************
*** 194,198 ****
String esc_path = Path;
! if (Uri.needsEscaping(esc_path))
esc_path = Uri.impl_EscapeString(esc_path);
maybeuri.Append(esc_path);
--- 194,198 ----
String esc_path = Path;
! if (Uri.needsEscaping(esc_path,false))
esc_path = Uri.impl_EscapeString(esc_path);
maybeuri.Append(esc_path);
Index: System.build
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/System.build,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** System.build 30 Oct 2002 18:32:05 -0000 1.8
--- System.build 18 Nov 2002 21:44:45 -0000 1.9
***************
*** 8,12 ****
unsafe="true"
nostdlib="true"
! optimize="true">
<sources>
--- 8,13 ----
unsafe="true"
nostdlib="true"
! optimize="true"
! debug="true">
<sources>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System Uri.cs,1.30,1.31 UriBuilder.cs,1.9,1.10 System.build,1.8,1.9,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.451,1.452
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/Net HttpWebRequest.cs,1.7,1.8 HttpWebResponse.cs,1.2,1.3 WebHeaderCollection.cs,1.3,1.4
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.451,1.452
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/Net HttpWebRequest.cs,1.7,1.8 HttpWebResponse.cs,1.2,1.3 WebHeaderCollection.cs,1.3,1.4
- Index(es):