File: 02_sql_injection.patch

package info (click to toggle)
mailutils 1%3A0.6.1-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,568 kB
  • ctags: 11,612
  • sloc: ansic: 111,948; sh: 8,899; yacc: 4,338; makefile: 2,235; exp: 2,190; lex: 1,379; lisp: 688; awk: 202; pascal: 151; sed: 23
file content (21 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- auth/sql.c.orig	2005-03-08 14:24:11.000000000 -0800
+++ auth/sql.c	2005-05-13 19:12:38.000000000 -0700
@@ -74,7 +74,7 @@
   
   for (p = (const unsigned char *) ustr; *p; p++)
     {
-      if (strchr ("'\"", *p))
+      if (strchr ("'\"\\", *p))
 	len++;
     }
 
@@ -84,7 +84,7 @@
 
   for (p = (const unsigned char *) ustr, q = str; *p; p++)
     {
-      if (strchr ("'\"", *p))
+      if (strchr ("'\"\\", *p))
 	*q++ = '\\';
       *q++ = *p;
     }