Changeset 608552c7aed157f41f299d64dea431c59857862b

Show
Ignore:
Timestamp:
10/31/11 22:08:43 (2 years ago)
Author:
Tomaz Muraus <tomaz@tomaz.me>
git-committer:
Tomaz Muraus <tomaz@tomaz.me> 1320098923 +0100
git-parent:

[51b2a89650aa59a060f72e44e0936e37650c04d6]

git-author:
Tomaz Muraus <tomaz@tomaz.me> 1320095694 +0100
Message:

Also check that m is not otherwise we get stuck in an infinite loop.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/http.lua

    ra24b166 r608552c  
    460460      local exre = noit.pcre(check.config.extract) 
    461461      local rv = true 
    462       while rv do 
     462      local m = nil 
     463      while rv and m ~= '' do 
    463464        rv, m, key, value = exre(output or '', { limit = pcre_match_limit }) 
    464465        if rv and key ~= nil then