derick Mon, 10 Jan 2011 21:48:05 +0000
Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3389&root=xdebug
Log:
- Fixed bug #653: XDebug profiler crash with %H in file name and non standart
port.
Changed paths:
U xdebug/branches/xdebug_2_1/usefulstuff.c
U xdebug/trunk/usefulstuff.c
Modified: xdebug/branches/xdebug_2_1/usefulstuff.c
===================================================================
--- xdebug/branches/xdebug_2_1/usefulstuff.c 2011-01-10 21:08:31 UTC (rev 3388)
+++ xdebug/branches/xdebug_2_1/usefulstuff.c 2011-01-10 21:48:05 UTC (rev 3389)
@@ -589,9 +589,10 @@
if (retval == SUCCESS) {
strval = estrdup(Z_STRVAL_PP(data));
- /* replace slashes, dots, question marks, plus signs,
- * ambersands and spaces with underscores */
- while ((char_ptr = strpbrk(strval, "/\\.?&+ ")) != NULL) {
+ /* replace slashes, dots, question marks, plus
+ * signs, ampersands, spaces and other evil chars
+ * with underscores */
+ while ((char_ptr = strpbrk(strval, "/\\.?&+:*\"<>| ")) != NULL) {
char_ptr[0] = '_';
}
xdebug_str_add(&fname, strval, 0);
Modified: xdebug/trunk/usefulstuff.c
===================================================================
--- xdebug/trunk/usefulstuff.c 2011-01-10 21:08:31 UTC (rev 3388)
+++ xdebug/trunk/usefulstuff.c 2011-01-10 21:48:05 UTC (rev 3389)
@@ -593,9 +593,10 @@
if (retval == SUCCESS) {
strval = estrdup(Z_STRVAL_PP(data));
- /* replace slashes, dots, question marks, plus signs,
- * ambersands and spaces with underscores */
- while ((char_ptr = strpbrk(strval, "/\\.?&+ ")) != NULL) {
+ /* replace slashes, dots, question marks, plus
+ * signs, ampersands, spaces and other evil chars
+ * with underscores */
+ while ((char_ptr = strpbrk(strval, "/\\.?&+:*\"<>| ")) != NULL) {
char_ptr[0] = '_';
}
xdebug_str_add(&fname, strval, 0);
Received on Mon Jan 10 2011 - 21:48:05 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST