[commits] Horde branch master updated. 4d88ec0f5d9dd342818d18a2f02fdd1fdcbf1051

Gunnar Wrobel p at rdus.de
Tue Nov 29 14:24:11 UTC 2011


The branch "master" has been updated.
The following is a summary of the commits.

from: 16bdd494ac076d2b392af452932691009bf84b88

4d88ec0 Add look behind assertion to avoid including question marks in the end-of-url match.

-----------------------------------------------------------------------

commit 4d88ec0f5d9dd342818d18a2f02fdd1fdcbf1051
Author: Gunnar Wrobel <p at rdus.de>
Date:   Tue Nov 29 15:23:59 2011 +0100

    Add look behind assertion to avoid including question marks in the end-of-url match.
    
    Comments concerning the fix:
    
    I admit I do not fully understand the reason why the regex does not
    match the long sequence of question marks. The matching works up to
    about ten question marks and then magically fails. I assume there is
    some kind of backtracking mechanism that fails once a certain count is
    hit. The middle part of the regex will certainly encompasses the
    complete test string at first. When the regex mechanism tries to match
    the end-of-url part (see "End with:" in the regex) it will need to
    backtrack and reduce the middle match. To me it looks as if this
    backtracking has limits. Why the look behind assertion cures this is
    also not 100% clear to me.
    
    So this is just a suggestion that needs checking and I won't complain
    if it is reverted :)
    
    
    Concerning breaking the build:
    
    I don't see a reason why a test got added with the explicit intention
    of breaking the build. The tested problem does not seem to be any
    critical issue that would require immediate fixing. Which is also
    suggested by the amount of time it was left unfixed.
    
    I would suggest to add a test marked as incomplete in such cases. And
    at the same time a corresponding issue should be opened in our bug
    tracker and linked in a comment to the test method.

 framework/Text_Filter/lib/Horde/Text/Filter/Linkurls.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/4d88ec0f5d9dd342818d18a2f02fdd1fdcbf1051




More information about the commits mailing list