mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

In PHP 5.2.8 with IIS 7, the $_SERVER array is lacking REQUEST_URI. Please update your code as follows currently: $url = str_replace("&action=purge", "", $_SERVER['REQUEST_URI']); better: $url = str_replace("&action=purge", "", $_SERVER['HTTP_REFERER']); #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Wiki Version: 1.12
Calendar Version: 3.8.4

Problem:

In PHP 5.2.8 with IIS 7, the $_SERVER array is lacking REQUEST_URI.

Please update your code as follows

currently: 
  $url = str_replace("&action=purge", "", $_SERVER['REQUEST_URI']);

better:
  $url = str_replace("&action=purge", "", $_SERVER['HTTP_REFERER']);

Original issue reported on code.google.com by bla...@gmail.com on 29 Jun 2012 at 3:29