Indefero

Indefero Commit Details


Date:2009-01-17 09:37:14 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:dev, 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:48355417d7135bfc6cdaf4a883c757d79e85174e
Parents: 7e7b5a440937b69c3bea7ca1146cda12bdef8ec4
Message:Remove cariage returns in the SSH keys.

Changes:

File differences

src/IDF/Plugin/SyncGit/Cron.php
5151
5252
5353
54
54
5555
5656
5757
foreach ($keys as $key) {
if (strlen($key->content) > 40 // minimal check
and preg_match('/^[a-zA-Z][a-zA-Z0-9_.-]*(@[a-zA-Z][a-zA-Z0-9.-]*)?$/', $key->login)) {
$content = str_replace("\n", '', $key->content);
$content = trim(str_replace(array("\n", "\r"), '', $key->content));
$out .= sprintf($template, $cmd, $key->login, $content)."\n";
}
}

Archive Download the corresponding diff file

Page rendered in 0.07685s using 13 queries.