diff options
| author | Christopher Guindon | 2016-11-08 20:24:25 +0000 |
|---|---|---|
| committer | Christopher Guindon | 2016-11-08 20:56:14 +0000 |
| commit | 376e7a81f2a9221e9c4f583675fb10306748b41a (patch) | |
| tree | f6ac33ce868494166bd19187dc8d83c0d24b74de | |
| parent | a397917a76ab095d27e916e264c9fd2715b26c9c (diff) | |
| download | eclipse.org-common-376e7a81f2a9221e9c4f583675fb10306748b41a.tar.gz eclipse.org-common-376e7a81f2a9221e9c4f583675fb10306748b41a.tar.xz eclipse.org-common-376e7a81f2a9221e9c4f583675fb10306748b41a.zip | |
Bug 472396 - [security] LEAKING PASSWORD RESET TOKEN VIA REFERRER
Change-Id: I40b140801091d709a444b96f687cb04a152ac208
Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
| -rw-r--r-- | classes/themes/baseTheme.class.php | 12 | ||||
| -rw-r--r-- | themes/solstice/footer-min.php | 30 |
2 files changed, 40 insertions, 2 deletions
diff --git a/classes/themes/baseTheme.class.php b/classes/themes/baseTheme.class.php index 6f35769e..6464fab0 100644 --- a/classes/themes/baseTheme.class.php +++ b/classes/themes/baseTheme.class.php @@ -1284,7 +1284,8 @@ EOHTML; 'default-footer', 'barebone', 'thin', - 'thin-header' + 'thin-header', + 'default-with-footer-min' ); $this->layout = 'default'; if (in_array($layout, $acceptable_layouts)) { @@ -1847,6 +1848,7 @@ EOHTML; $files['body'] = $eclipse_org_common_root . '/themes/solstice/body.php'; $files['main_menu'] = $eclipse_org_common_root . '/themes/solstice/main_menu.php'; $files['footer'] = $eclipse_org_common_root . '/themes/solstice/footer.php'; + $files['footer-min'] = $eclipse_org_common_root . '/themes/solstice/footer-min.php'; // Validate theme files foreach ($files as $key => $template_files) { @@ -1918,7 +1920,6 @@ EOHTML; $this->setAttributes('main-menu-wrapper', 'col-sm-18 col-md-18 col-lg-19'); $this->setAttributes('main-menu', 'navbar-right'); $this->setAttributes('header-row', 'row'); - $this->setDisplayHeaderRight(FALSE); print $this->getThemeFile('header'); print $this->getThemeFile('menu'); @@ -1929,6 +1930,13 @@ EOHTML; print $this->getThemeFile('menu'); break; + case 'default-with-footer-min': + print $this->getThemeFile('header'); + print $this->getThemeFile('menu'); + print $this->getThemeFile('body'); + print $this->getThemeFile('footer-min'); + break; + case 'default': print $this->getThemeFile('header'); print $this->getThemeFile('menu'); diff --git a/themes/solstice/footer-min.php b/themes/solstice/footer-min.php new file mode 100644 index 00000000..17481efa --- /dev/null +++ b/themes/solstice/footer-min.php @@ -0,0 +1,30 @@ +<?php +/** + * @file + * Solstice footer + */ +?> +<p id="back-to-top"> + <a class="visible-xs" href="#top">Back to the top</a> +</p> +<footer role="contentinfo" id="solstice-footer-min" class="footer-min"> + <div class="container""> + <div class="row"> + <div class="col-sm-13"> + <p>Copyright © <?php print date('Y');?> The Eclipse Foundation. All Rights Reserved.</p> + </div> + <div class="col-sm-11"> + <ul class="list-inline" id="footer-legal-links"> + <li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li> + <li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li> + <li><a href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a></li> + </ul> + </div> + </div> + </div> +</footer> +<!-- Placed at the end of the document so the pages load faster --> +<script src="<?php print $this->getThemeUrl('solstice')?>public/javascript/main.min.js"></script> +<?php print $this->getExtraJsFooter();?> +</body> +</html> |
