Browse Source

remove tailing \0 in filename of administration html output. reported by darix.

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@96 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
7e1a9f1740
  1. 2
      xcache.c

2
xcache.c

@ -295,7 +295,7 @@ static void xc_fillentry_dmz(xc_entry_t *entry, int del, zval *list TSRMLS_DC) /
add_assoc_zval_ex(ei, ZEND_STRS("name"), zv);
} while (0);
#else
add_assoc_stringl_ex(ei, ZEND_STRS("name"), entry->name.str.val, entry->name.str.len + 1, 1);
add_assoc_stringl_ex(ei, ZEND_STRS("name"), entry->name.str.val, entry->name.str.len, 1);
#endif
switch (entry->type) {
case XC_TYPE_PHP:

Loading…
Cancel
Save