Please be careful of your quoting. This was very hard to read. >> Could you check http://mail.example.org/src/test.php?test and see if >> REQUEST_URI includes '?test' part?If you want you could try upgrading your >> PHP setup in desperate hope than newer version adds PHP_SELF variable. >> Correct fix is to make SquirrelMail use REQUEST_URI, when PHP_SELF is not >> available. ["REQUEST_URI"]=> string(26) "/src/test.php?velociraptor" >> ["QUERY_STRING"]=> string(12) "velociraptor"i'm running the most current >> stable version of squirrelmail available (1.4.19) and it seems that >> REQUEST_URI does in fact include qs params.in case it helps, my php.ini >> has cgi.fix_pathinfo=1 and my lighttpd.conf has the following php >> settings: fastcgi.server = ( ".php" => (( "bin-path" => >> "/usr/local/bin/php-cgi", "socket" => "/tmp/php.socket", >> "broken-scriptfilename" => "enable" )))i've tried variations of the >> fix_pathinfo and broken-scriptfilename, but to no avail. Thanks for following up. Several others have had similar experience with lighttpd, but have not followed up - for instance: http://sourceforge.net/tracker/index.php?func=detail&aid=1741469&group_id=311&atid=100311 Please try the attached patch. It is made from 1.4.20 SVN, so it may or may not apply cleanly. If you just want to paste in the new php_self() function in functions/strings.php, here it is: function php_self () { if (sqgetGlobalVar('PHP_SELF', $php_self, SQ_SERVER) && !empty($php_self)) { // need to add query string to end of PHP_SELF to match REQUEST_URI // if (sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER) && !empty($query_string)) { $php_self .= '?' . $query_string; } return $php_self; } // some versions of PHP, perhaps specifically in use with lighttpd, // return a blank string for PHP_SELF, so we use REQUEST_URI as a backup: // else if (sqgetGlobalVar('REQUEST_URI', $req_uri, SQ_SERVER) && !empty($req_uri)) { // some versions of PHP (such as 4.4.4) don't include the query // string in REQUEST_URI, but most do... here's a fix for the // odd ones out (assuming QUERY_STRING is reliable in those cases) // if (strpos($req_uri, '?') === FALSE && sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER) && !empty($query_string)) { $req_uri .= '?' . $query_string; } return $req_uri; } return ''; } -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php
Attachment:
php_self_change.diff
Description: Binary data
------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev
----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users