ezsystems/ezpublish — pull request #355 by masev (2012-06-20 11:51:10+00:00)
Title: Add condition to handle request not served by Apache

When a different webserver than Apache is used the server variable SCRIPT_URL might not be set (one example is the use of Nginx).
Thus, I suggest to fallback on REQUEST_URI that is available by default.