From 88de4926347fce9a3007692cfb220fedeff3a141 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 4 Dec 2006 08:45:18 +0000 Subject: [PATCH] tweak comments git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11986 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 071e90cb..157b118e 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -1158,7 +1158,7 @@ function sq_unspace(&$attvalue){ } /** - * Translate all dangerous Unicode or Shift_JIS characters which are acepted by + * Translate all dangerous Unicode or Shift_JIS characters which are accepted by * IE as regular characters. * * @param attvalue The attribute value before dangerous characters are translated. @@ -1171,8 +1171,8 @@ function sq_fixIE_idiocy(&$attvalue) { // remove comments $attvalue = preg_replace("/(\/\*.*?\*\/)/","",$attvalue); - // IE has the evil habit of excepting every possible value for the attribute expression - // The table below contain characters which are valid in IE if they are used in the "expression" + // IE has the evil habit of accepting every possible value for the attribute expression. + // The table below contains characters which are parsed by IE if they are used in the "expression" // attribute value. $aDangerousCharsReplacementTable = array( array('ʟ', 'ʟ' ,/* L UNICODE IPA Extension */ @@ -1199,7 +1199,7 @@ function sq_fixIE_idiocy(&$attvalue) { 'U', 'U',/* Unicode FULLWIDTH LATIN CAPITAL LETTER U */ 'u', 'u',/* Unicode FULLWIDTH LATIN SMALL LETTER U */ 'ⁿ', 'ⁿ' ,/* Unicode SUPERSCRIPT LATIN SMALL LETTER N */ - '艤', /* Shift JIS FULLWIDTH LATIN CAPITAL LETTER E */ // in unicode this is some chinese char range + '艤', /* Shift JIS FULLWIDTH LATIN CAPITAL LETTER E */ // in unicode this is some Chinese char range '芅', /* Shift JIS FULLWIDTH LATIN SMALL LETTER E */ '艷', /* Shift JIS FULLWIDTH LATIN CAPITAL LETTER X */ '芘', /* Shift JIS FULLWIDTH LATIN SMALL LETTER X */ @@ -1221,8 +1221,8 @@ function sq_fixIE_idiocy(&$attvalue) { 'E','e','X','x','P','p','S','s','I','i','O','o','N','n')); $attvalue = str_replace($aDangerousCharsReplacementTable[0],$aDangerousCharsReplacementTable[1],$attvalue); - // Escapes are usefull for special characters like "{}[]()'&. In other cases they are - // used for XSS + // Escapes are useful for special characters like "{}[]()'&. In other cases they are + // used for XSS. $attvalue = preg_replace("/(\\\\)([a-zA-Z]{1})/",'$2',$attvalue); } -- 2.25.1