Bug #19846 » 10176_v3.patch
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
$valListCnt = count($valueList);
|
||
foreach ($arr as $key => $value) {
|
||
if (!$valListCnt || in_array($key, $valueList)) {
|
||
$str .= (string)$key.trim(': '.t3lib_div::fixed_lgd(str_replace("\n",'|',(string)$value), $valueLength)).'; ';
|
||
$str .= (string)$key.trim(': '.t3lib_div::fixed_lgd_cs(str_replace("\n",'|',(string)$value), $valueLength)).'; ';
|
||
}
|
||
}
|
||
return $str;
|
t3lib/class.t3lib_timetrack.php (working copy) | ||
---|---|---|
function fixCLen($c,$v) {
|
||
$len = $v=='FILE'?$this->printConf['contentLength_FILE']:$this->printConf['contentLength'];
|
||
if (strlen($c)>$len) {
|
||
$c = '<span style="color:green;">'.htmlspecialchars(t3lib_div::fixed_lgd($c,$len)).'</span>';
|
||
$c = '<span style="color:green;">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($c,$len)).'</span>';
|
||
} else {
|
||
$c = htmlspecialchars($c);
|
||
}
|
typo3/alt_shortcut.php (working copy) | ||
---|---|---|
if ($row['description']&&($row['uid']!=$this->editSC)) {
|
||
$label = $row['description'];
|
||
} else {
|
||
$label = t3lib_div::fixed_lgd(rawurldecode($qParts['query']),150);
|
||
$label = t3lib_div::fixed_lgd_cs(rawurldecode($qParts['query']),150);
|
||
}
|
||
$titleA = $this->itemLabel($label,$row['module_name'],$row['M_module_name']);
|
||
typo3/class.db_list_extra.inc (working copy) | ||
---|---|---|
}
|
||
}
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$table.'\', \''.$uid.'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$table.'\', \''.$uid.'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
}
|
||
/**
|
typo3/class.file_list.inc (working copy) | ||
---|---|---|
$theData[$field]=$this->makeRef($theFile);
|
||
break;
|
||
default:
|
||
$theData[$field]=t3lib_div::fixed_lgd($theFile[$field],$this->fixedL);
|
||
$theData[$field]=t3lib_div::fixed_lgd_cs($theFile[$field],$this->fixedL);
|
||
break;
|
||
}
|
||
}
|
||
... | ... | |
// Sometimes $code contains plain HTML tags. In such a case the string should not be modified!
|
||
if(!strcmp($code,strip_tags($code))) {
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.' title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.' title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
|
||
} else {
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.'>'.$code.'</a>';
|
||
}
|
||
... | ... | |
if (t3lib_div::isFirstPartOfStr($path,t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT'))) {
|
||
$href = substr($path,strlen(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT')));
|
||
$aOnClick = "return top.openUrlInWindow('".$href."','WebFile');";
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
|
||
}
|
||
return $code;
|
||
}
|
||
... | ... | |
$theData[$field] = $this->linkWrapFile($theFile[$field],$theFile['path'].$theFile['file']);
|
||
break;
|
||
default:
|
||
$theData[$field]=t3lib_div::fixed_lgd($theFile[$field],$this->fixedL);
|
||
$theData[$field]=t3lib_div::fixed_lgd_cs($theFile[$field],$this->fixedL);
|
||
break;
|
||
}
|
||
}
|
||
... | ... | |
}
|
||
}
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$theData['path'].$theData['file'].'\', \'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$theData['path'].$theData['file'].'\', \'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
}
|
||
}
|
||
typo3/classes/class.shortcutmenu.php (working copy) | ||
---|---|---|
if($row['description']) {
|
||
$shortcut['label'] = $row['description'];
|
||
} else {
|
||
$shortcut['label'] = t3lib_div::fixed_lgd(rawurldecode($queryParts['query']), 150);
|
||
$shortcut['label'] = t3lib_div::fixed_lgd_cs(rawurldecode($queryParts['query']), 150);
|
||
}
|
||
$shortcut['group'] = $shortcutGroup;
|
typo3/mod/tools/em/class.em_index.php (working copy) | ||
---|---|---|
}
|
||
// Extension title:
|
||
$cells[] = '<td nowrap="nowrap"><a href="'.htmlspecialchars($altLinkUrl?$altLinkUrl:'index.php?CMD[showExt]='.$extKey.'&SET[singleDetails]=info').'" title="'.$extKey.'"'/*.($extInfo['EM_CONF']['shy'] ? ' style="color:#666;" ' : '')*/.'>'.t3lib_div::fixed_lgd($extInfo['EM_CONF']['title']?$extInfo['EM_CONF']['title']:'<em>'.$extKey.'</em>',40).'</a></td>';
|
||
$cells[] = '<td nowrap="nowrap"><a href="'.htmlspecialchars($altLinkUrl?$altLinkUrl:'index.php?CMD[showExt]='.$extKey.'&SET[singleDetails]=info').'" title="'.$extKey.'"'/*.($extInfo['EM_CONF']['shy'] ? ' style="color:#666;" ' : '')*/.'>'.t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title']?$extInfo['EM_CONF']['title']:'<em>'.$extKey.'</em>',40).'</a></td>';
|
||
// Based on which display mode you will see more or less details:
|
||
if (!$this->MOD_SETTINGS['display_details']) {
|
||
$cells[] = '<td>'.htmlspecialchars(t3lib_div::fixed_lgd($extInfo['EM_CONF']['description'],400)).'<br /><img src="clear.gif" width="300" height="1" alt="" /></td>';
|
||
$cells[] = '<td>'.htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['description'],400)).'<br /><img src="clear.gif" width="300" height="1" alt="" /></td>';
|
||
$cells[] = '<td nowrap="nowrap">'.($extInfo['EM_CONF']['author_email'] ? '<a href="mailto:'.htmlspecialchars($extInfo['EM_CONF']['author_email']).'">' : '').htmlspecialchars($extInfo['EM_CONF']['author']).($extInfo['EM_CONF']['author_email'] ? '</a>' : '').($extInfo['EM_CONF']['author_company'] ? '<br />'.htmlspecialchars($extInfo['EM_CONF']['author_company']) : '').'</td>';
|
||
} elseif ($this->MOD_SETTINGS['display_details']==2) {
|
||
$cells[] = '<td nowrap="nowrap">'.$extInfo['EM_CONF']['priority'].'</td>';
|
||
... | ... | |
if (is_array($imgInfo)) {
|
||
$out.= '<img src="'.$GLOBALS['BACK_PATH'].$this->typeRelPaths[$extInfo['type']].$extKey.'/ext_icon.gif" '.$imgInfo[3].' align="'.$align.'" alt="" />';
|
||
}
|
||
$out.= $extInfo['EM_CONF']['title'] ? htmlspecialchars(t3lib_div::fixed_lgd($extInfo['EM_CONF']['title'],40)) : '<em>'.$extKey.'</em>';
|
||
$out.= $extInfo['EM_CONF']['title'] ? htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title'],40)) : '<em>'.$extKey.'</em>';
|
||
return $out;
|
||
}
|
||
typo3/mod/web/perm/index.php (working copy) | ||
---|---|---|
// First column:
|
||
$cellAttrib = ($data['row']['_CSSCLASS'] ? ' class="'.$data['row']['_CSSCLASS'].'"' : '');
|
||
$cells[]='
|
||
<td align="left" nowrap="nowrap"'.($cellAttrib ? $cellAttrib : $bgCol).'>'.$data['HTML'].htmlspecialchars(t3lib_div::fixed_lgd($data['row']['title'],$tLen)).' </td>';
|
||
<td align="left" nowrap="nowrap"'.($cellAttrib ? $cellAttrib : $bgCol).'>'.$data['HTML'].htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['title'],$tLen)).' </td>';
|
||
// "Edit permissions" -icon
|
||
if ($editPermsAllowed && $pageId) {
|
typo3/sysext/cms/tslib/media/scripts/wapversionLib.inc (working copy) | ||
---|---|---|
function contentAbstract() {
|
||
$res = $this->getContentResult('tt_content');
|
||
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
|
||
$out = $this->bold(t3lib_div::fixed_lgd(htmlspecialchars($row['header']),20)).'<br/>';
|
||
$out.= t3lib_div::fixed_lgd(htmlspecialchars($row['bodytext']),50);
|
||
$out = $this->bold(t3lib_div::fixed_lgd_cs(htmlspecialchars($row['header']),20)).'<br/>';
|
||
$out.= t3lib_div::fixed_lgd_cs(htmlspecialchars($row['bodytext']),50);
|
||
$out = '<p>'.$out.' <a href="'.htmlspecialchars('?id='.$GLOBALS['TSFE']->id.',1.'.$GLOBALS['TSFE']->type).'">[more]</a></p>';
|
||
return $out;
|
||
}
|
||
... | ... | |
* @see contentAll()
|
||
*/
|
||
function cBodytext($str,$start=0,$max=0) {
|
||
$out = t3lib_div::fixed_lgd(($start?'...':'').substr($this->nl2br(htmlspecialchars(strip_tags($str))),$start),($max?$max:100000));
|
||
$out = t3lib_div::fixed_lgd_cs(($start?'...':'').substr($this->nl2br(htmlspecialchars(strip_tags($str))),$start),($max?$max:100000));
|
||
$out = str_replace('&','',$out); // No & in WAP docs??? --> or maybe just htmlspecialchar() things as the LAST thing instead!)
|
||
return $out;
|
||
}
|
typo3/sysext/fe_edit/view/class.tx_feedit_editpanel.php (working copy) | ||
---|---|---|
<table border="0" cellpadding="0" cellspacing="0" class="typo3-editPanel" summary="">
|
||
<tr>
|
||
<td nowrap="nowrap" bgcolor="#ABBBB4" class="typo3-editPanel-controls">' . $panel . '</td>' .
|
||
($labelTxt ? '<td nowrap="nowrap" bgcolor="#F6F2E6" class="typo3-editPanel-label"><font face="verdana" size="1" color="black"> ' . sprintf($labelTxt, htmlspecialchars(t3lib_div::fixed_lgd($dataArr[$labelField], 50))) . ' </font></td>' : '') . '
|
||
($labelTxt ? '<td nowrap="nowrap" bgcolor="#F6F2E6" class="typo3-editPanel-label"><font face="verdana" size="1" color="black"> ' . sprintf($labelTxt, htmlspecialchars(t3lib_div::fixed_lgd_cs($dataArr[$labelField], 50))) . ' </font></td>' : '') . '
|
||
</tr>
|
||
</table>
|
||
</form>';
|
typo3/sysext/install/mod/class.tx_install.php (working copy) | ||
---|---|---|
if (!is_array($value) && ($this->checkForBadString($value) || $isTextarea)) {
|
||
$k2 = '['.$vk.']';
|
||
$msg = htmlspecialchars($description).'<br /><br /><em>'.$ext.$k2.' = '.htmlspecialchars(t3lib_div::fixed_lgd($value,60)).'</em><br />';
|
||
$msg = htmlspecialchars($description).'<br /><br /><em>'.$ext.$k2.' = '.htmlspecialchars(t3lib_div::fixed_lgd_cs($value,60)).'</em><br />';
|
||
if ($isTextarea) {
|
||
$form = '<textarea name="TYPO3_INSTALL[extConfig]['.$k.']['.$vk.']" cols="60" rows="5" wrap="off">'.htmlspecialchars($value).'</textarea>';
|
||
... | ... | |
if (count($statements)) {
|
||
$out = '';
|
||
foreach ($statements as $statement) {
|
||
$out.= nl2br(htmlspecialchars(t3lib_div::fixed_lgd($statement,$maxlen)).chr(10).chr(10));
|
||
$out.= nl2br(htmlspecialchars(t3lib_div::fixed_lgd_cs($statement,$maxlen)).chr(10).chr(10));
|
||
}
|
||
}
|
||
$this->message($tLabel,'Content of '.basename($actionParts[1]),$out,1);
|
typo3/sysext/lowlevel/dbint/index.php (working copy) | ||
---|---|---|
reset($admin->lRecords[$t]);
|
||
while(list(,$data)=each($admin->lRecords[$t])) {
|
||
if (!t3lib_div::inList($admin->lostPagesList,$data[pid])) {
|
||
$lr.= '<nobr><b><a href="index.php?SET[function]=records&fixLostRecords_table=' . $t . '&fixLostRecords_uid=' . $data[uid] . '"><img src="' . $BACK_PATH . 'gfx/required_h.gif" width="10" hspace="3" height="10" border="0" align="top" title="' . $GLOBALS['LANG']->getLL('fixLostRecord') . '"></a>uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd(strip_tags($data[title]), 20) . '</b></nobr><br>';
|
||
$lr.= '<nobr><b><a href="index.php?SET[function]=records&fixLostRecords_table=' . $t . '&fixLostRecords_uid=' . $data[uid] . '"><img src="' . $BACK_PATH . 'gfx/required_h.gif" width="10" hspace="3" height="10" border="0" align="top" title="' . $GLOBALS['LANG']->getLL('fixLostRecord') . '"></a>uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</b></nobr><br>';
|
||
} else {
|
||
$lr.= '<nobr><img src="' . $BACK_PATH . 'clear.gif" width="16" height="1" border="0"><font color="Gray">uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd(strip_tags($data[title]), 20) . '</font></nobr><br>';
|
||
$lr.= '<nobr><img src="' . $BACK_PATH . 'clear.gif" width="16" height="1" border="0"><font color="Gray">uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</font></nobr><br>';
|
||
}
|
||
}
|
||
}
|
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (working copy) | ||
---|---|---|
foreach($treeArr as $k => $v) {
|
||
$c++;
|
||
$bgColor=' class="'.(($c+1)%2 ? 'bgColor' : 'bgColor-10').'"';
|
||
$out.='<tr'.$bgColor.'><td nowrap="nowrap">'.$v['HTML'].$this->wrapTitle(t3lib_div::fixed_lgd($v['row']['title'],$titleLen),$v['row']).'</td></tr>';
|
||
$out.='<tr'.$bgColor.'><td nowrap="nowrap">'.$v['HTML'].$this->wrapTitle(t3lib_div::fixed_lgd_cs($v['row']['title'],$titleLen),$v['row']).'</td></tr>';
|
||
}
|
||
$out='<table border="0" cellpadding="0" cellspacing="0">'.$out.'</table>';
|
||
... | ... | |
$titleLen = intval($BE_USER->uc['titleLen']);
|
||
$picon='<img'.t3lib_iconWorks::skinImg($BACK_PATH,'gfx/i/_icon_webfolders.gif','width="18" height="16"').' alt="" />';
|
||
$picon.=htmlspecialchars(t3lib_div::fixed_lgd(basename($expandFolder),$titleLen));
|
||
$picon.=htmlspecialchars(t3lib_div::fixed_lgd_cs(basename($expandFolder),$titleLen));
|
||
$out.='<span class="nobr">'.$picon.'</span><br />';
|
||
$imgObj = t3lib_div::makeInstance('t3lib_stdGraphic');
|
||
... | ... | |
$ATag2_e='</a>';
|
||
}
|
||
$filenameAndIcon=$ATag.$icon.htmlspecialchars(t3lib_div::fixed_lgd(basename($filepath),$titleLen)).$ATag_e;
|
||
$filenameAndIcon=$ATag.$icon.htmlspecialchars(t3lib_div::fixed_lgd_cs(basename($filepath),$titleLen)).$ATag_e;
|
||
$lines[]='<tr class="bgColor4"><td nowrap="nowrap">'.$filenameAndIcon.' </td><td nowrap="nowrap">'.$pDim.' </td></tr>';
|
typo3/sysext/sys_action/class.tx_sysaction.php (working copy) | ||
---|---|---|
$res = $this->getActionResPointer();
|
||
$lines=array();
|
||
while($actionRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
|
||
$lines[]='<nobr>'.t3lib_iconworks::getIconImage("sys_action",$actionRow,$this->backPath,'hspace="2" align="top"').$this->action_link($this->fixed_lgd($actionRow["title"]),$actionRow["uid"],$actionRow["description"]).'</nobr><BR>';
|
||
$lines[]='<nobr>'.t3lib_iconworks::getIconImage("sys_action",$actionRow,$this->backPath,'hspace="2" align="top"').$this->action_link($this->fixed_lgd_cs($actionRow["title"]),$actionRow["uid"],$actionRow["description"]).'</nobr><BR>';
|
||
}
|
||
$out = implode("",$lines);
|
||
return $out;
|
typo3/sysext/taskcenter/task/class.mod_user_task.php (working copy) | ||
---|---|---|
* @return string cropped string
|
||
*/
|
||
function fixed_lgd($str, $len = 0) {
|
||
return t3lib_div::fixed_lgd($str, $len?$len:$this->BE_USER->uc['titleLen']);
|
||
return t3lib_div::fixed_lgd_cs($str, $len?$len:$this->BE_USER->uc['titleLen']);
|
||
}
|
||
/**
|