xaizek / fragile (License: AGPLv3+) (since 2018-12-07)
Simple lightweight CI, attempting to be somewhat Unix-like in its philosophy.
Commit d108da37b7ef9806d8881a389c3cf788f249235f

Escape HTML symbols in report
Author: xaizek
Author date (UTC): 2018-02-08 18:42
Committer name: xaizek
Committer date (UTC): 2018-02-08 18:43
Parent(s): ccc82e9da35cee80fd708418c35acdadb10a8918
Signing key: 99DC5E4DB05F6BE2
Tree: 54552c983c1cd3ff3812484491b5859279bf461e
File Lines added Lines deleted
README.md 1 1
daemon.php 5 5
File README.md changed (mode: 100644) (index c87ccab..08cc7cb)
1 **fragile**, _v0.5_, _2015 – 2017_
1 **fragile**, _v0.5_, _2015 – 2018_
2 2
3 3 _This file last updated on 17 July, 2017_ _This file last updated on 17 July, 2017_
4 4
File daemon.php changed (mode: 100644) (index 0e6d5bd..623ace7)
... ... function makeReport($rawOutput)
187 187 $re = '/^(.*)(error|warning|Error|Warning|ERROR|WARNING|ERROR SUMMARY)(:\s+)(.*)$/'; $re = '/^(.*)(error|warning|Error|Warning|ERROR|WARNING|ERROR SUMMARY)(:\s+)(.*)$/';
188 188 preg_match($re, $line, $matches); preg_match($re, $line, $matches);
189 189 if (sizeof($matches) == 0 || $matches[4] == '0') { if (sizeof($matches) == 0 || $matches[4] == '0') {
190 array_push($output, $line);
190 array_push($output, htmlentities($line));
191 191 continue; continue;
192 192 } }
193 193
 
... ... function makeReport($rawOutput)
202 202 $style = 'warning'; $style = 'warning';
203 203 } }
204 204
205 $line = "$matches[1]"
206 . "<span class='$style-title'>$matches[2]</span>"
207 . "$matches[3]"
208 . "<span class='$style-msg'>$matches[4]</span>";
205 $line = htmlentities($matches[1])
206 . "<span class='$style-title'>".htmlentities($matches[2])."</span>"
207 . htmlentities($matches[3])
208 . "<span class='$style-msg'>".htmlentities($matches[4])."</span>";
209 209
210 210 array_push($output, $anchor . $line); array_push($output, $anchor . $line);
211 211
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/fragile

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/fragile

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master