- fix endless loop in http_build_url() with urls like "/.foo"
[m6w6/ext-http] / http_url_api.c
index dff4caec0a78d6e73483ea9669d3c0f3b458183c..01a2e41c464e03a22f8757ec695b5586e58656ca 100644 (file)
@@ -208,6 +208,11 @@ PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
                                                memmove(&ptr[1], pos, end - pos);
                                        }
                                break;
+                               
+                               default:
+                                       /* something else */
+                                       ++ptr;
+                               break;
                        }
                }
        }