]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix warning about redirect_url not set
authorBart Visscher <bartv@thisnet.nl>
Fri, 7 Dec 2012 11:07:56 +0000 (12:07 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 7 Dec 2012 11:07:56 +0000 (12:07 +0100)
lib/util.php

index 622a42982c3682667d0f49273d867e8418f27e09..c4ed1f6ba7ce64e59ca812bdea6ec218e7c2c607 100755 (executable)
@@ -340,8 +340,8 @@ class OC_Util {
                }
                if (isset($_REQUEST['redirect_url'])) {
                        $redirect_url = OC_Util::sanitizeHTML($_REQUEST['redirect_url']);
+                       $parameters['redirect_url'] = urlencode($redirect_url);
                } 
-               $parameters['redirect_url'] = urlencode($redirect_url);
                OC_Template::printGuestPage("", "login", $parameters);
        }