Mercurial > hg > nginx-site
changeset 860:9fce700e56d3
If: only empty strings and "0" evaluate to false.
Before version 1.0.1, any string starting with "0" was considered
a false value.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 07 Mar 2013 08:11:34 +0400 |
parents | 0ed7670778bb |
children | 6ae71688f2c2 |
files | xml/en/docs/http/ngx_http_rewrite_module.xml xml/ru/docs/http/ngx_http_rewrite_module.xml |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_rewrite_module.xml +++ b/xml/en/docs/http/ngx_http_rewrite_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_rewrite_module" link="/en/docs/http/ngx_http_rewrite_module.html" lang="en" - rev="3"> + rev="4"> <section id="summary"> @@ -98,7 +98,11 @@ A condition may be any of the following: <listitem> a variable name; false if the value of a variable is an empty string -or any string starting with “<literal>0</literal>”; +or “<literal>0</literal>”; +<note> +Before version 1.0.1, any string starting with “<literal>0</literal>” +was considered a false value. +</note> </listitem> <listitem>
--- a/xml/ru/docs/http/ngx_http_rewrite_module.xml +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_rewrite_module" link="/ru/docs/http/ngx_http_rewrite_module.html" lang="ru" - rev="3"> + rev="4"> <section id="summary"> @@ -98,7 +98,11 @@ if ($slow) { <listitem> имя переменной; ложными значениями переменной являются пустая строка -или любая строка, начинающаяся на “<literal>0</literal>”; +или “<literal>0</literal>”; +<note> +До версии 1.0.1 ложным значением также являлась любая строка, +начинающаяся на “<literal>0</literal>”. +<note> </listitem> <listitem>