Skip to content

Commit f55ea2c

Browse files
committed
Improved code
1 parent 68eea60 commit f55ea2c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

inc/conf.const.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#################### CONSTANTS ####################
2222

2323

24-
########## OTHERS ##########
24+
########## OTHER ##########
2525

2626
define('SELF', (substr($sPhp_self,-1) !== '/') ? $sPhp_self . '/' : $sPhp_self);
2727
define('RELATIVE', SELF);

inc/scripts/fns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function get_dir_list($sDir)
117117
*/
118118
function get_current_url()
119119
{
120-
return PROT_URL . strip_tags($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
120+
return PROT_URL . escape($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
121121
}
122122

123123
/**
@@ -149,7 +149,7 @@ function set_lang()
149149
}
150150

151151
/**
152-
* Escape function with htmlspecialchars() PHP function.
152+
* Escape string with htmlspecialchars() PHP function.
153153
*
154154
* @return string
155155
*/

0 commit comments

Comments
 (0)