Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Retrieving old link validation method

  • Loading branch information...
commit 068cf908061a9c1209a431cb6a3fcd6b77336b29 1 parent 3aa4a76
acidvertigo acidvertigo authored
6 catalog/admin/includes/functions/html_output.php
@@ -16,11 +16,9 @@ function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
16 16 $page = tep_output_string($page);
17 17
18 18 if ($page == '') {
19   - $PHP_SELF = $_SERVER['PHP_SELF'];
20   - if ( empty($PHP_SELF) )
21   - $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
22   - $page = basename($_SERVER['PHP_SELF']);
  19 + die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
23 20 }
  21 +
24 22 if ($connection == 'NONSSL') {
25 23 $link = HTTP_SERVER . DIR_WS_ADMIN;
26 24 } elseif ($connection == 'SSL') {
5 catalog/includes/functions/html_output.php
@@ -18,10 +18,7 @@ function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $ad
18 18 $page = tep_output_string($page);
19 19
20 20 if (!tep_not_null($page)) {
21   - $PHP_SELF = $_SERVER['PHP_SELF'];
22   - if ( empty($PHP_SELF) )
23   - $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
24   - $page = basename($_SERVER['PHP_SELF']);
  21 + die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
25 22 }
26 23
27 24 if ($connection == 'NONSSL') {

0 comments on commit 068cf90

Please sign in to comment.
Something went wrong with that request. Please try again.