6.0.0-git
2019-03-18

[#4137] Wrong Path from lib/Horde.php - selfUrl with FastCGI
Summary Wrong Path from lib/Horde.php - selfUrl with FastCGI
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester eric (at) wwwx (dot) de
Created 2006-07-09 (4635 days ago)
Due
Updated 2006-08-04 (4609 days ago)
Assigned 2006-07-10 (4634 days ago)
Resolved 2006-08-04 (4609 days ago)
Milestone
Patch No

History
2006-08-04 22:16:06 Jan Schneider Comment #4
State ⇒ Not A Bug
Reply to this comment
No feedback.
2006-07-10 07:59:05 Jan Schneider Summary ⇒ Wrong Path from lib/Horde.php - selfUrl with FastCGI
 
2006-07-10 07:30:01 Chuck Hagenbuch Comment #3
State ⇒ Feedback
Reply to this comment
Please describe _what_ wrong path you get, and provide your changes as 
a unified diff. Thanks!
2006-07-09 13:37:20 eric (at) wwwx (dot) de Comment #2 Reply to this comment
Sorry wrong File in Title : Right is lib/Horde.php
2006-07-09 13:33:12 eric (at) wwwx (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Wrong Path from inc/Horde.lib - selfUrl with FastCGI
Queue ⇒ Horde Framework Packages
Reply to this comment
I got the wrong Path from selfUrl with PHP 4.4.2 and FastCGI.

Bugfix :

Change selfUrl to :

   function selfUrl($script_params = false, $nocache = true, $full = false,

                      $force_ssl = false)

     {

         if (substr(php_sapi_name(), 0, 3) == 'cgi') {

             // When using CGI PHP, SCRIPT_NAME may contain the path to

             // the PHP binary instead of the script being run; use

             // PHP_SELF instead.

             $url = $_SERVER['PHP_SELF'];

         } else {

             $url = isset($_SERVER['SCRIPT_NAME']) ?

                 $_SERVER['SCRIPT_NAME'] :

                 $_SERVER['PHP_SELF'];

         }



         if ($script_params) {

          if (substr(php_sapi_name(), 0, 7) == 'cgi-fcgi') {



             if (!empty($_SERVER['PATH_INFO'])) {

                 $url .= $_SERVER['PATH_INFO'];

             }

         };

             if (!empty($_SERVER['QUERY_STRING'])) {

                 $url .= '?' . $_SERVER['QUERY_STRING'];

             }

...





My PHP Compile Options :

./configure' '--with-config-file-path=/etc/httpd' '--with-gd=yes' 
'--with-freetype-dir=/usr' '--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-mysql=/usr' 
'--with-gd=/usr' '--enable-memory-limit' '--enable-force-cgi-redirect' 
'--enable-track-vars' '--with-openssl=/usr' '--without-mm' 
'--enable-fastcgi' '--prefix=/usr/local/phpfcgi' '--with-gettext' 
'--with-dom' '--with-imap' '--with-ldap' '--with-kerberos' 
'--with-imap-ssl'




Saved Queries