Hi,
Hiawatha gives me strange 403 errors with phpMyAdmin.
To reproduce this error:
- open any database
- go to SQL tab
- execute any query, longer than one line, for example:
SELECT * FROM table
WHERE field = 1
You have to press enter in the input box to separate the lines
- Under "Query result operations" click on "Print view"
As you can notice, the weblink has substantially changed, and now it
contains the whole SQL query. If the query contains %0D%0A characters,
hiawatha gives me 403 error.
It looks like this in access.log:
192.168.1.10|Wed 21 Apr 2010 15:00:26 +0200|403|576||GET /dbadmin/sql.php?db=firewall&table=blacklist&printview=1&sql_query=SELECT+%2A+FROM+%60blacklist%60+%0D%0AWHERE+id+%3D+10&token=b14d53f3dc09ded598ef32e0853577c4 HTTP/1.1|Host: localhost|User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.19) Gecko/2010040119 Ubuntu/8.04 (hardy) Firefox/3.0.19|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language: en,de;q=0.8,sk;q=0.5,en-us;q=0.3|Accept-Encoding: gzip,deflate|Accept-Charset: UTF-8,*|Keep-Alive: 300|Connection: keep-alive|Referer: http://localhost/dbadmin/import.php
For now I solved it by adding these lines to the URL toolkit:
Match %0D Rewrite %20 20 Continue
Match %0A Rewrite %20 20 Continue
This is a lame workaround, do you have an idea, how to solve this?
Can I change something in the configuration to make it work?
tested on:
Hiawatha version: 7.0, 7.1
OS: Debian lenny
phpMyAdmin 2.11.8.1deb5+lenny3
OS: Debian squeeze
phpMyAdmin 3.3.1deb1