Skip to content
Browse files

Retrieving old link validation method

  • Loading branch information...
1 parent 3aa4a76 commit 068cf908061a9c1209a431cb6a3fcd6b77336b29 @acidvertigo acidvertigo committed Aug 17, 2011
Showing with 3 additions and 8 deletions.
  1. +2 −4 catalog/admin/includes/functions/html_output.php
  2. +1 −4 catalog/includes/functions/html_output.php
View
6 catalog/admin/includes/functions/html_output.php
@@ -16,11 +16,9 @@ function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
$page = tep_output_string($page);
if ($page == '') {
- $PHP_SELF = $_SERVER['PHP_SELF'];
- if ( empty($PHP_SELF) )
- $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
- $page = basename($_SERVER['PHP_SELF']);
+ 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>');
}
+
if ($connection == 'NONSSL') {
$link = HTTP_SERVER . DIR_WS_ADMIN;
} elseif ($connection == 'SSL') {
View
5 catalog/includes/functions/html_output.php
@@ -18,10 +18,7 @@ function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $ad
$page = tep_output_string($page);
if (!tep_not_null($page)) {
- $PHP_SELF = $_SERVER['PHP_SELF'];
- if ( empty($PHP_SELF) )
- $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
- $page = basename($_SERVER['PHP_SELF']);
+ 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>');
}
if ($connection == 'NONSSL') {

0 comments on commit 068cf90

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