0001-useless-code-removed.patch
usr/local/univnautes/sp/sp/views.py | ||
---|---|---|
23 | 23 |
from django.template import Template, Context |
24 | 24 |
import urllib2 |
25 | 25 |
from django.http import HttpResponse |
26 |
from django.utils.http import urlencode |
|
27 | 26 |
from django.shortcuts import redirect |
28 | 27 |
import subprocess |
29 | 28 | |
... | ... | |
36 | 35 |
context = super(Homepage, self).get_context_data(*args, **kwargs) |
37 | 36 |
url, delay = get_redirect_params() |
38 | 37 |
if url == 'next_url': |
39 |
url = urllib2.unquote(self.request.COOKIES.get(url, '')) |
|
40 | ||
38 |
url = self.request.COOKIES.get(url, '') |
|
41 | 39 |
url = Template(url).render(Context(context)) |
42 | 40 |
context.update({'redirect_url': url, |
43 | 41 |
'redirect_delay': delay}) |
usr/local/www/services_captiveportal_saml_sp.php | ||
---|---|---|
104 | 104 |
$pconfig['defined_redirect_url'] = ''; |
105 | 105 |
/* write config.xml */ |
106 | 106 |
write_config(); |
107 |
if ($a_sp['redirect_url'] != 'defined_redirect_url') |
|
108 | 107 | |
109 | 108 |
/* relaunch SP */ |
110 | 109 |
mwexec_bg("/usr/local/univnautes/sp/rc.sh restart"); |
111 |
- |