Revision 1834
Added by Luisehahne almost 13 years ago
- fixed redirect checking in class.login.php
| class.wb.php | ||
|---|---|---|
| 79 | 79 |
} |
| 80 | 80 |
|
| 81 | 81 |
|
| 82 |
/** |
|
| 83 |
* Created parse_url utf-8 compatible function |
|
| 84 |
* |
|
| 85 |
* @param string $url The string to decode |
|
| 86 |
* @return array Associative array containing the different components |
|
| 87 |
* |
|
| 88 |
*/ |
|
| 89 |
public function mb_parse_url($url) {
|
|
| 90 |
$encodedUrl = preg_replace('%[^:/?#&=\.]+%usDe', 'urlencode(\'$0\')', $url);
|
|
| 91 |
$components = parse_url($encodedUrl); |
|
| 92 |
foreach ($components as &$component) |
|
| 93 |
$component = urldecode($component); |
|
| 94 |
return $components; |
|
| 95 |
} |
|
| 96 |
|
|
| 82 | 97 |
/* **************** |
| 83 | 98 |
* check if one or more group_ids are in both group_lists |
| 84 | 99 |
* |
Also available in: Unified diff