From: Edin Kadribasic Date: Tue, 10 Dec 2002 16:18:59 +0000 (+0000) Subject: Improve UNC path detection. X-Git-Tag: php-4.3.0RC3~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12cbd7056247aacda67e1811eb4029b73a9d2e6e;p=php Improve UNC path detection. --- diff --git a/main/streams.c b/main/streams.c index 6aa12034ac..83d2b9250a 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1773,7 +1773,7 @@ PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, cha #ifdef PHP_WIN32 /* skip the sanity check; fstat doesn't appear to work on * UNC paths */ - is_unc = (filename[0] == '\\' && filename[1] == '\\'); + is_unc = IS_UNC_PATH(filename, strlen(filename)); #endif if (!is_unc) { goto err;