Issue Details (XML | Word | Printable)

Key: MDL-17777
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Improve $FULLME, $ME and add $SCRIPT and $FULLSCRIPT

Created: 03/Jan/09 11:36 PM   Updated: 06/Jan/09 06:43 AM
Return to search
Component/s: Administration
Affects Version/s: 2.0
Fix Version/s: 2.0

Issue Links:
Relates
 

Participants: Petr Skoda
Security Level: None
Resolved date: 06/Jan/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
The major problems here are:
* reverse proxies
* SSL accelerators

$FULLME - should always contain full url starting with wwwroot (and https: if https enabled) including page parameters and slasharguments
$ME - like FULLME but without the query part
$SCRIPT - relative me, like ME without wwwroot - ex: "/course/view.php", "/admin/cron.php"


the cron should stop using FULLME == 'cron' and instead use $SCRIPT == "/$CFG->admin/cron.php"


-------
This is just the first step towards reversed proxy and SSL accel support ;-)
This will also help with detection of incorrect access addresses.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 06/Jan/09 06:43 AM
done :-D