summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-08-21Display deprecation warning for files uploaded via plain text APIFlorian Pritz2-0/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-21Remove unecessary whitespaceFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-21Improve coding style for return statements that only check one conditionFlorian Pritz2-20/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-21Allow users to delete their accountsFlorian Pritz5-0/+107
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-21muser: Add delete_user()Florian Pritz5-0/+136
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-21mfile->add_file: Take userid via argumentFlorian Pritz5-15/+19
This allows for easier testing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Migration 18: Allow user info to be nulledFlorian Pritz2-1/+32
This allows us to safely delete users without breaking referrer information. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Duser: Add function to test if login credentials are validFlorian Pritz1-0/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20run-tests.sh: Allow running single testsFlorian Pritz1-1/+2
--state=hot,slow,all force all tests from the save file to be run even if they are not listed on the command line. Therefore they are dropped and replaced by failed which only pulls in tests that failed during the last run. -r and -o are replaced by their long text versions for clarity. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20tests: Use one webserver per testcaseFlorian Pritz5-23/+55
This allows the tests to run somewhat parallel (still limited by the database) and simplifies running single testcases without the ./run-tests.sh wrapper. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Test \libraries\Output_cacheFlorian Pritz2-0/+87
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Decouple output_cache from CI for easier testingFlorian Pritz2-15/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20service\storage->gzip_compress: Remove incorrectly documented parameterFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Test \services\storageFlorian Pritz1-0/+172
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Test \libraries\Image some moreFlorian Pritz1-0/+15
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20l/Image/Driver/GD: Drop unused get_exif_orientation()Florian Pritz1-9/+0
This appears to be an exact copy of \libraries\Image, but only the function from \libraries\Image is actually used. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-17pygments: Add .yml extensionFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-12pygments: Add .haml extensionFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-02Test filebin_helperFlorian Pritz1-0/+70
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\PygmentsFlorian Pritz1-0/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01gitignore: Add code coverage outputFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\ExifFlorian Pritz1-0/+48
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\Image::get_exif_orientationFlorian Pritz3-0/+18
Also pull in some test files Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Create Clover coverage reportFlorian Pritz1-3/+3
Also don't print the return data of the writer. In the case of clover it's the XML content, with the HTML writer it's nothing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Test \libraries\TempfileFlorian Pritz1-0/+46
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Test \libraries\ProcRunnerFlorian Pritz1-0/+118
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31post-merge: Automatically update composer dependenciesFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Add composer.lockFlorian Pritz1-0/+357
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31composer: Move php-code-coverage to require-devFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Add ./vendor to gitignoreFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Silence some untestable coverage warnings in the test casesFlorian Pritz2-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Add code coverage outputFlorian Pritz5-3/+79
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Install git hooks as relative symlinksFlorian Pritz2-1/+5
Absolute symlinks break when the installation is moved on the server and provide no value. Also update the post-merge hook so that it performs this change. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31install.php: Fix version checkFlorian Pritz1-2/+2
We actually already depend on 5.5 due to using password_hash (see NEWS) Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-30Fix dbprefix in database example configFlorian Pritz1-1/+1
Mysql doesn't like unquoted dashes, but tablenames aren't quoted everywhere so that queries don't need to be duplicated for postgres. Underscores don't cause problems so use these. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-29Return 403 instead of 401 for missing authenticationFlorian Pritz2-2/+2
According to the RFC this is only useful for services that use HTTP's built in authentication schemes. We don't so we can't use this code. References: https://tools.ietf.org/html/rfc7235 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-21history: Disable lazy loading for the first 42 thumbnailsFlorian Pritz1-4/+14
This speeds up the initial rendering of the page. For a long history (> ~1000 items) the lazyloading JS creates a noticeable delay (>500ms) depending on the cpu power of the machine. Disable lazy loading for the first items so that these are loaded normally by the browser parallel to the scripts execution. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-21Update NEWSFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-21Add special *.asciinema.json filename0.9.18Florian Pritz2-0/+14
Don't force users to name all their files asciinema.json. Give them some room for descriptive names. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Tests: Test muser username/email verificationFlorian Pritz1-0/+56
Email verification is pretty basic since we use the framework function right now. This might change in the future. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Tests: Use muser->add_user to create test usersFlorian Pritz2-22/+12
Change the username to fit within the username restrictions. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14muser: Add add_user functionFlorian Pritz2-14/+25
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14controller/user: Use our function for email verifcationFlorian Pritz1-2/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Move username/email validation functions to muserFlorian Pritz2-29/+29
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Doc: Fixed wrong paths, typoJan Koppe1-3/+3
2016-07-14Fix incorrect username validation0.9.17Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Update NEWS0.9.16Florian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Fix missing empty lines in chromium when copying codeFlorian Pritz1-2/+6
Chromium apparently requires a <br> or some text to be present for a line to be copied to the clipboard. Firefox interprets the \n at the end as line break and copies that if there is no content. Adding an explicit <br> makes chromium work correctly, but firefox still converts the \n. Fix this by putting the \n in an HTML comment. That way the output is still somewhat readable, but both browsers do the correct thing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Fix double linebreaks when copying code in firefoxFlorian Pritz2-12/+14
Apparently firefox doesn't like html code in <pre> and adds incorrect linebreaks when copying the code. This does not happen with chromium. Fix it by switching to <code> instead of <pre>. Also change the CSS to refer to the element by class instead of by type so future changes are simpler. Not sure why, but in chroium changing the container element type breaks the ordering of the lines. Adding display: table to the .code-container fixes this. References: http://stackoverflow.com/questions/24851173/why-does-text-copied-from-a-set-of-pre-tags-have-double-line-breaks#comment41552816_26408656 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Improve insufficient permisions error messageFlorian Pritz3-3/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>