From 131d82e41e2fee1d296687bdbba3c9ad50e979a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Mon, 7 Oct 2013 11:49:43 +0200
Subject: [PATCH] move call to print_unescaped() to template

---
 core/templates/layout.user.php | 2 +-
 lib/private/user.php           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 2fccfd1f71..fcca43624f 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -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>
diff --git a/lib/private/user.php b/lib/private/user.php
index f7661f8d83..0284e8044f 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -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";
 	}
 
 	/**
-- 
GitLab