Project

General

Profile

Actions

Bug #1677

closed

mod_rewrite beheaves incorectly in lighttpd.git/stbuehler

Added by tx over 16 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

Hi,[BR]
I'm again testing your experimental branch :) and discover bug in mod_rewrite.
The bug was introduced in


deee61b7a6d55a907388f74d2c2527fef49a7c0d - 
Sanitize the path of an uri before mod_rewrite matches it. (#1392) 

after reverting it everything works like a charm.

Here is the test case:

Bad result


GET http://localhost/-/1tK3kAMwZA%2BW57PEQxgtqcnItCUDVm9o%2BKasLhxW3%2FORkMraSfsgofKIYbgVdqUaDTDFSH4Bi83wnzKRCLTlaR3iKkGOfH6%2BYLaTSDSTlv4ULKufX4RXpx1QhV0IZZHu7XGiPnilvqoWX77YsIvacOxvo0ydQBZwFFjN%2Br7%2BB%2BcFc%2FpLJ78kEQ%3D%3D/translate_c.htm
OUTPUT
Array
( 
    [test1] => d.php?test1=- 
    [test2] => pLJ78kEQ== 
    [test3] => translate_c.htm 
)

after reverting offending commit

Good result


GET http://localhost/-/1tK3kAMwZA%2BW57PEQxgtqcnItCUDVm9o%2BKasLhxW3%2FORkMraSfsgofKIYbgVdqUaDTDFSH4Bi83wnzKRCLTlaR3iKkGOfH6%2BYLaTSDSTlv4ULKufX4RXpx1QhV0IZZHu7XGiPnilvqoWX77YsIvacOxvo0ydQBZwFFjN%2Br7%2BB%2BcFc%2FpLJ78kEQ%3D%3D/translate_c.htm
OUTPUT
Array
(
    [test1] => -
    [test2] => 1tK3kAMwZA+W57PEQxgtqcnItCUDVm9o+KasLhxW3/ORkMraSfsgofKIYbgVdqUaDTDFSH4Bi83wnzKRCLTlaR3iKkGOfH6+YLaTSDSTlv4ULKufX4RXpx1QhV0IZZHu7XGiPnilvqoWX77YsIvacOxvo0ydQBZwFFjN+r7+B+cFc/pLJ78kEQ==
    [test3] => translate_c.htm
)

rewrite rule


url.rewrite              = (
    "^/(.*)/(.*)/(.*)$" => "/d.php?test1=$1&test2=$2&test3=$3",
)

and contents of d.php


<?
        print_r($_GET);
?>
Actions #1

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes
Actions #2

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom