Skip to content

Commit

Permalink
fix variable name in accents function
Browse files Browse the repository at this point in the history
  • Loading branch information
epsylon3 committed Sep 18, 2014
1 parent aa0f073 commit c20180f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions html/inc/functions/functions.core.tfb.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function tfb_isValidTransfer($transfer) {
* @return string
*/
function tfb_clean_accents($inName) {
return remove_accents($outName);
return remove_accents($inName);
}

/**
Expand Down Expand Up @@ -219,15 +219,15 @@ function tfb_htmlencodekeepspaces($str) {
* @return string
*/
function tfb_shellencode($str) {
$str = (string)$str;
return isset($str) && strlen($str) > 0 ? mb_escapeshellarg($str) : "''";
$str = (string)$str;
return isset($str) && strlen($str) > 0 ? mb_escapeshellarg($str) : "''";
}

// http://markushedlund.com/dev-tech/php-escapeshellarg-with-unicodeutf-8-support
// By default escapeshellarg will strip any unicode characters.
// The code below is translated from the C source of PHP.
function mb_escapeshellarg($arg) {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
if (isWinOS()) {
return '"' . str_replace(array('"', '%'), array('', ''), $arg) . '"';
} else {
return "'" . str_replace("'", "'\\''", $arg) . "'";
Expand Down

0 comments on commit c20180f

Please sign in to comment.