diff options
author | Sara Golemon <pollita@php.net> | 2003-12-02 01:04:14 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-12-02 01:04:14 +0000 |
commit | dbfe62117bd132291432220d24211a0961a4f9cf (patch) | |
tree | d8bbf5c29a83e79564086fcea27523a0be5515f2 /main | |
parent | 0bd11e2a0515881891e573cc018d302120d0b1e2 (diff) | |
download | php-git-dbfe62117bd132291432220d24211a0961a4f9cf.tar.gz |
CS
Diffstat (limited to 'main')
-rw-r--r-- | main/streams/plain_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index ffaeb31bd9..008e283367 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -899,8 +899,8 @@ static php_stream *php_plain_files_stream_opener(php_stream_wrapper *wrapper, ch static int php_plain_files_url_stater(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) { - if (strncmp(url, "file://", 7) == 0) { - url += 7; + if (strncmp(url, "file://", sizeof("file://") - 1) == 0) { + url += sizeof("file://") - 1; } if (PG(safe_mode) &&(!php_checkuid_ex(url, NULL, CHECKUID_CHECK_FILE_AND_DIR, (flags & PHP_STREAM_URL_STAT_QUIET) ? CHECKUID_NO_ERRORS : 0))) { |