Changeset 544
- Timestamp:
- 09/13/06 14:25:58 (2 years ago)
- Files:
-
- devel/login/index.php (modified) (1 diff)
- devel/units/display/function_log_on_pane.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/login/index.php
r541 r544 7 7 8 8 $redirect_url = trim(optional_param('passthru_url')); 9 if (empty($redirect_url) ) {9 if (empty($redirect_url) || substr_count($redirect_url,$CFG->wwwroot) == 0) { 10 10 $redirect_url = $CFG->wwwroot . "index.php"; 11 11 } 12 /*13 TODO: Find a more useful way to restrict redirects to14 the valid Elgg domain name.15 12 16 13 if (substr_count($redirect_url,$CFG->wwwroot) == 0) { 17 14 $redirect_url = substr($CFG->wwwroot,0,strlen($CFG->wwwroot) - 1) . $redirect_url; 18 15 } 19 */ 16 17 $redirect_url = str_replace("@","",$redirect_url); 20 18 21 19 // if we're already logged in, redirect away again. devel/units/display/function_log_on_pane.php
r517 r544 31 31 <label>' . gettext("Password") . ' <input type="password" name="password" id="password" style="size: 200px" /> 32 32 </label> 33 <input type="hidden" name="passthru_url" value="'. $_SERVER['REQUEST_URI'] .'" />33 <input type="hidden" name="passthru_url" value="'. substr($CFG->wwwroot,0,strlen($CFG->wwwroot) - 1) . $_SERVER['REQUEST_URI'] .'" /> 34 34 </p> 35 35 </td>
