add patch file for browscap.ini to get client side validation working. and add it...
authorChris Toshok <toshok@novell.com>
Tue, 6 Sep 2005 17:48:21 +0000 (17:48 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 6 Sep 2005 17:48:21 +0000 (17:48 -0000)
svn path=/trunk/mcs/; revision=49558

mcs/class/System.Web/Hacking.FAQ
mcs/class/System.Web/browscap.ini.diff [new file with mode: 0644]

index 7174c69b3d1217630972405467a84140db7d7fca..816942414c89f7a6fcb97dded3ad20f30e3fb560 100644 (file)
@@ -238,44 +238,11 @@ A: a few things are required:
 
        <add verb="*" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 
-   2. Apply the following patch to your browscap.ini (this patch only
+   2. Apply the patch file 'browscap.ini.diff' to your browscap.ini (this patch only
       works if you're using firefox, IE6, or Safari.  I didn't bother with any others.):
------
-Index: browscap.ini
-===================================================================
---- browscap.ini        (revision 48810)
-+++ browscap.ini        (working copy)
-@@ -4958,6 +4958,8 @@
- version=1.3
- majorver=1
- minorver=3
-+ecmascriptversion=1.3
-+w3cdomversion=1.0
-
- [Mozilla/5.0 (Macintosh; U; PPC Mac OS X; *) AppleWebKit/* (*) Safari/412*]
- parent=Safari
-@@ -12424,6 +12426,8 @@
- stripper=False
- wap=False
- netclr=False
-+ecmascriptversion=1.3
-+w3cdomversion=1.0
-
- [Mozilla/5.0 (Macintosh; *; PPC Mac OS X Mach-O; *rv:*) Gecko/* Firefox/1.0*]
- parent=Firefox 1.0
-@@ -13306,6 +13310,8 @@
- netclr=False
- AK=False
- SK=False
-+ecmascriptversion=1.3
-+w3cdomversion=1.0
-
- [Mozilla/?.0 (compatible; MSIE 6.0*;*Windows NT 5.2*)*]
- parent=IE 6.0
------
 
   Once these two steps are completed, just going to be a page with
-  validators that have EnableClientScript="true" should be enough.
+  validators that have EnableClientScript="true" (the default) should be enough.
 
 Q: My control can get a URL in one of its attributes. The value can be something
 like "~/blah" or "../bleh" or... How do I translate that into a URL that is
diff --git a/mcs/class/System.Web/browscap.ini.diff b/mcs/class/System.Web/browscap.ini.diff
new file mode 100644 (file)
index 0000000..8729f5b
--- /dev/null
@@ -0,0 +1,86 @@
+Index: browscap.ini
+===================================================================
+--- browscap.ini       (revision 49079)
++++ browscap.ini       (working copy)
+@@ -4958,6 +4958,8 @@
+ version=1.3
+ majorver=1
+ minorver=3
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ [Mozilla/5.0 (Macintosh; U; PPC Mac OS X; *) AppleWebKit/* (*) Safari/412*]
+ parent=Safari
+@@ -12398,6 +12400,8 @@
+ stripper=False
+ wap=False
+ netclr=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Firefox 1.0
+@@ -12424,6 +12428,8 @@
+ stripper=False
+ wap=False
+ netclr=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ [Mozilla/5.0 (Macintosh; *; PPC Mac OS X Mach-O; *rv:*) Gecko/* Firefox/1.0*]
+ parent=Firefox 1.0
+@@ -12469,6 +12475,9 @@
+ parent=Firefox 1.0
+ platform=Linux
++[Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)]
++parent=Firefox 1.0
++
+ [Mozilla/5.0 (X11; *; OpenBSD*; *rv:*) Gecko/* Firefox/1.0*]
+ parent=Firefox 1.0
+ platform=OpenBSD
+@@ -12713,6 +12722,8 @@
+ stripper=False
+ wap=False
+ netclr=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; StarOffice 5.0
+@@ -12999,6 +13010,8 @@
+ stripper=False
+ wap=False
+ netclr=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Mozilla 1.8
+@@ -13025,6 +13038,8 @@
+ stripper=False
+ wap=False
+ netclr=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IE 1.5
+@@ -13278,6 +13293,8 @@
+ netclr=False
+ AK=False
+ SK=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IE 6.0
+@@ -13306,6 +13323,8 @@
+ netclr=False
+ AK=False
+ SK=False
++ecmascriptversion=1.3
++w3cdomversion=1.0
+ [Mozilla/?.0 (compatible; MSIE 6.0*;*Windows NT 5.2*)*]
+ parent=IE 6.0