Indefero

Indefero Commit Details


Date:2010-10-14 07:13:38 (14 years 2 months ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:b30bdc9833945b782294a682fcf3d6665b921b48
Parents: d171a249c5ac2b8e0bc155d9b05dd1a1a640b96c
Message:While for allowed upload extensions the user was hinted to the need of having to start the list with a space, here it was actually needed code-wise. I rewrote the code so the space was not needed and the documentation follows the actual behaviour.

Changes:

File differences

src/IDF/Views/Source.php
533533
534534
535535
536
537
536
537
538
539
538540
539541
540542
if (0 === strpos($fileinfo[0], 'text/')) {
return true;
}
$ext = 'mdtext php-dist h gitignore diff patch'
.Pluf::f('idf_extra_text_ext', '');
$ext = 'mdtext php-dist h gitignore diff patch';
$extra_ext = trim(Pluf::f('idf_extra_text_ext', ''));
if (!empty($extra_ext))
$ext .= ' ' . $extra_ext;
$ext = array_merge(self::$supportedExtenstions, explode(' ' , $ext));
return (in_array($fileinfo[2], $ext));
}

Archive Download the corresponding diff file

Page rendered in 0.07500s using 13 queries.