Lines 227-238
Link Here
|
227 |
} |
227 |
} |
228 |
header_save(p); |
228 |
header_save(p); |
229 |
|
229 |
|
230 |
@@ -876,11 +900,11 @@ |
230 |
@@ -876,12 +900,18 @@ |
|
|
231 |
char *begin=buf; |
231 |
char *rightside; |
232 |
char *rightside; |
232 |
/* Make comments invisible */ |
233 |
/* Make comments invisible */ |
233 |
if((p = strchr(buf, '#'))) { |
234 |
- if((p = strchr(buf, '#'))) { |
234 |
- *p = (char)NULL; |
235 |
- *p = (char)NULL; |
235 |
+ *p = '\0'; |
236 |
+ if((p = strchr(buf, '#'))) { |
|
|
237 |
+ /* check if # is a part of a param */ |
238 |
+ if((q = strchr(buf, '='))) { |
239 |
+ if ((int)(p-buf) < (int)(q-buf)) |
240 |
+ *p = '\0'; |
241 |
+ } |
242 |
+ else |
243 |
+ *p = '\0'; |
236 |
} |
244 |
} |
237 |
|
245 |
|
238 |
/* Ignore malformed lines and comments */ |
246 |
/* Ignore malformed lines and comments */ |