Share » Forums » Install & configuration » little Patch for puretec / schlund...

little Patch for puretec / schlund -servers

little Patch for puretec / schlund -servers

Wednesday 21 May 2003 2:34:01 pm - 5 replies

Modified on Wednesday 21 May 2003 2:40:26 pm by Andreas Bockler

Author Message

Karsten Jennissen

Thursday 22 May 2003 1:27:14 am

That's great. A general solution for PHP as CGI?!

Karsten

Andreas Bockler

Thursday 22 May 2003 3:12:23 am

Hi,

I don't know, if the patch is an general php-cgi-solution, it works for me :)
Maybe the ez-team could point out cavehats, i'm not aware of.
UPDATE:
I noticed one cavehat!:
<form method="get".. does not work
U need to change the line to
<form method="post"

i extended the preceding patch. Now it works with PHPSESSID encoded in the url.
Apply the first patch before you apply this one.
This patch should be more general though, e.g. extract the path element dispite _any_ extra arguments.

bye

--- ezpublish.orig/lib/ezutils/classes/ezsys.php 21 May 2003 21:07:27 -0000 1.3
+++ ezpublish/lib/ezutils/classes/ezsys.php 22 May 2003 10:00:12 -0000
@@ -523,6 +523,11 @@
$wwwDir = $regs[1];

$requestURI = eZSys::serverVariable( 'QUERY_STRING' );
+
+ // take out PHPSESSID, if url-encoded
+ if( preg_match("/(.*)&PHPSESSID=[^&]+(.*)/",$requestURI,$matches ) ) {
+ $requestURI = $matches[1].$matches[2];
+ }

// Fallback... Finding the paths above failed, so $_SERVER['PHP_SELF'] is not set right.
if ( $siteDir == "./" )

Claudius Frank

Thursday 22 May 2003 5:29:16 am

Hi,

What I can do if I can't apply the patch?

How are to understand the lines:

@@ -271,7 +271,7 @@

@@ -522,26 +522,11 @@

@@ -523,6 +523,11 @@

I had the same problem on Schlund's server and I was not able to resolve it.

Could you post the complete file ezsys.php or almost this part(s) which have to be patched? For non-programmer?

Regards
Claudius

Ekkehard Dörre

Thursday 22 May 2003 8:12:14 am

@ Claudius:

Look on http://ez.no/developer/ez_publish_3/forum/developer/offsets_not_working_object_not_available_reported_bugs_

the latest post there is an how to

Greetings
ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Claudius Frank

Thursday 22 May 2003 10:07:14 am

Hi Ekke,

Thank you very much for the link.

Regards
Claudius

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu