[xdebug-dev] xdebug xdebug/usefulstuff.c - Fixed the Xdebug version of raw_url_encode to not encode : and \. This is not

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 31 May 2007 21:15:58 +0200

Date: Thu May 31 21:15:58 CEST 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Fixed the Xdebug version of raw_url_encode to not encode : and \. This is not
  necessary according to the RFCs and it makes debug breakpoints work on
  Windows.

Modified files:
           xdebug/usefulstuff.c (version: 1.42)

[FILE: /xdebug/usefulstuff.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- xdebug/usefulstuff.c:1.41 Wed May 16 13:53:31 2007 GMT
+++ xdebug/usefulstuff.c Thu May 31 17:15:58 2007 GMT
@@ -253,8 +253,8 @@
         for (x = 0, y = 0; len--; x++, y++) {
                 str[y] = (unsigned char) s[x];
                 if ((str[y] < '0' && str[y] != '-' && str[y] != '.' && (str[y] != '/' || !skip_slash)) ||
- (str[y] < 'A' && str[y] > '9') ||
- (str[y] > 'Z' && str[y] < 'a' && str[y] != '_') ||
+ (str[y] < 'A' && str[y] > '9' && str[y] != ':') ||
+ (str[y] > 'Z' && str[y] < 'a' && str[y] != '_' && (str[y] != '\\' || !skip_slash)) ||
                         (str[y] > 'z'))
                 {
                         str[y++] = '%';
Received on Thu May 31 2007 - 21:16:02 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST