summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-27 22:55:39 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-02-27 22:55:39 +0100
commit229c907a57a4a64730e7b58f59cb8f7f627bfaf3 (patch)
tree560c7cdae8b7a43898832b0989b7fb3b780501a8 /core/templates/layout.user.php
parent40e51d13d2fd028fa13902b12814532d1de15f5a (diff)
downloadnextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.tar.gz
nextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.zip
[core] From echo to p
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php52
1 files changed, 26 insertions, 26 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 10540cfe362..2b53cc0ae5d 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -1,56 +1,56 @@
<!DOCTYPE html>
<html class="ng-csp">
<head>
- <title><?php echo !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud
- <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title>
+ <title><?php p(!empty($_['application'])?$_['application'].' | ':'') ?>ownCloud
+ <?php p(!empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-itunes-app" content="app-id=543672169">
- <link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" />
- <link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
+ <link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
+ <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
<?php foreach($_['cssfiles'] as $cssfile): ?>
- <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
+ <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
<?php endforeach; ?>
<?php foreach($_['jsfiles'] as $jsfile): ?>
- <script type="text/javascript" src="<?php echo $jsfile; ?>"></script>
+ <script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
<?php endforeach; ?>
<?php foreach($_['headers'] as $header): ?>
<?php
- echo '<'.$header['tag'].' ';
+ print_unescaped('<'.$header['tag'].' ');
foreach($header['attributes'] as $name=>$value) {
- echo "$name='$value' ";
+ print_unescaped("$name='$value' ");
};
- echo '/>';
+ print_unescaped('/>');
?>
<?php endforeach; ?>
</head>
- <body id="<?php echo $_['bodyid'];?>">
+ <body id="<?php p($_['bodyid']);?>">
<div id="notification-container">
<div id="notification"></div>
</div>
<header><div id="header">
- <a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img class="svg"
- src="<?php echo image_path('', 'logo-wide.svg'); ?>" alt="ownCloud" /></a>
+ <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
+ src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
<ul id="settings" class="svg">
<span id="expand">
- <span id="expandDisplayName"><?php echo $_['user_displayname'] ?></span>
- <img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
+ <span id="expandDisplayName"><?php p($_['user_displayname']) ?></span>
+ <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
</span>
<div id="expanddiv">
<?php foreach($_['settingsnavigation'] as $entry):?>
<li>
- <a href="<?php echo $entry['href']; ?>" title=""
+ <a href="<?php print_unescaped($entry['href']); ?>" title=""
<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
- <img class="svg" alt="" src="<?php echo $entry['icon']; ?>">
- <?php echo $entry['name'] ?>
+ <img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
+ <?php p($entry['name']) ?>
</a>
</li>
<?php endforeach; ?>
<li>
- <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true">
- <img class="svg" alt="" src="<?php echo image_path('', 'actions/logout.svg'); ?>" />
- <?php echo $l->t('Log out');?>
+ <a id="logout" href="<?php print_unescaped(link_to('', 'index.php')); ?>?logout=true">
+ <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
+ <?php p($l->t('Log out'));?>
</a>
</li>
</div>
@@ -58,7 +58,7 @@
<form class="searchbox" action="#" method="post">
<input id="searchbox" class="svg" type="search" name="query"
- value="<?php if(isset($_POST['query'])) {echo OC_Util::sanitizeHTML($_POST['query']);};?>"
+ value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
autocomplete="off" x-webkit-speech />
</form>
</div></header>
@@ -66,11 +66,11 @@
<nav><div id="navigation">
<ul id="apps" class="svg">
<?php foreach($_['navigation'] as $entry): ?>
- <li data-id="<?php echo $entry['id']; ?>">
- <a href="<?php echo $entry['href']; ?>" title=""
+ <li data-id="<?php p($entry['id']); ?>">
+ <a href="<?php print_unescaped($entry['href']); ?>" title=""
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
- <img class="icon svg" src="<?php echo $entry['icon']; ?>"/>
- <?php echo $entry['name']; ?>
+ <img class="icon svg" src="<?php print_unescaped($entry['icon']); ?>"/>
+ <?php p($entry['name']); ?>
</a>
</li>
<?php endforeach; ?>
@@ -79,7 +79,7 @@
<div id="content-wrapper">
<div id="content">
- <?php echo $_['content']; ?>
+ <?php print_unescaped($_['content']); ?>
</div>
</div>
</body>