]> source.dussan.org Git - nextcloud-server.git/commitdiff
move call to print_unescaped() to template
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 7 Oct 2013 09:49:43 +0000 (11:49 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 7 Oct 2013 09:49:43 +0000 (11:49 +0200)
core/templates/layout.user.php
lib/private/user.php

index 2fccfd1f71955030a700b1295fc762165ead902d..fcca43624fe6ad4b4aee8a67935a526952c6a78a 100644 (file)
@@ -64,7 +64,7 @@
                                        </li>
                                <?php endforeach; ?>
                                        <li>
-                                               <a id="logout" <?php print OC_User::getLogoutAttribute(); ?>>
+                                               <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
                                                        <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
                                                        <?php p($l->t('Log out'));?>
                                                </a>
index f7661f8d83ec45f06ce9a105eb7731f2c2a34945..0284e8044f6af8b26d07260cd9622d8461082e1a 100644 (file)
@@ -327,7 +327,7 @@ class OC_User {
                        }
                }
 
-               return print_unescaped("href=".link_to('', 'index.php'))."?logout=true";
+               return "href=" . link_to('', 'index.php') . "?logout=true";
        }
 
        /**