Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/YOURLS/YOURLS

🔗 The de facto standard self hosted URL shortener in PHP
https://github.com/YOURLS/YOURLS

Avoid notices during unit tests

[skip ci]

faf481fe9279abb18971986b20038cd1c69535aa authored over 9 years ago by ozh <[email protected]>
More tests.

Makes functions-formatting.php covered at 93%

8ef521ea37764e927af77f574a7200ee43494be4 authored over 9 years ago by ozh <[email protected]>
Less if(function_exists())

Because
- it hinders unit tests
- it makes code less readable
- it's easier to have compat funct...

d80d78849a987ab0eb7119d3d7b13e17a23acb21 authored over 9 years ago by ozh <[email protected]>
Lots of auth tests

To do so, we stop pretending we're in API mode, and we stop pretending we're requesting a partic...

d4cf2d4f7a1f81af1f5d1890c09fd887a630b7d8 authored over 9 years ago by ozh <[email protected]>
Avoid notices during unit tests

b5be1a92e974d4ebbd246c2123071d3aef0601b1 authored over 9 years ago by ozh <[email protected]>
Remove static var

- this makes testing impossible once a value has been set
- this prevents the function to be act...

fc69856230920e49dd6d581789db0abc74ebbfda authored over 9 years ago by ozh <[email protected]>
Unneeded global

f01c5fdd31451a941ad891c7616b1b747e701900 authored over 9 years ago by ozh <[email protected]>
yourls_get_protocol() can return '', not false

37dd72228c2b078752e92a14cec1714367c67d90 authored over 9 years ago by ozh <[email protected]>
One more test

functions-formatting.php now covered at 83%, not too bad

2bd4be1762b422f8c69d612ea1a159809cb1e086 authored over 9 years ago by ozh <[email protected]>
A couple more tests

898a4d7046632f22732358b9cf371878a19500fe authored over 9 years ago by ozh <[email protected]>
Couple more edge cases

3b72f9c322d09a5a390aca2856fdab77ea346639 authored over 9 years ago by ozh <[email protected]>
Tests, tests, more tests, EVEN MOAR TESTS

33a3fb631518c0d7c380f4847dcea8d25257816f authored over 9 years ago by ozh <[email protected]>
Better version string sanitizing

696e19da607c2381c516f0c750af2379023258af authored over 9 years ago by ozh <[email protected]>
Add one more level to test recursiveness

d125e640904992e86921b6d07c646f0651db263d authored over 9 years ago by ozh <[email protected]>
More tests

b9070080503e2ac39b2d888334621f5db09ff15d authored over 9 years ago by ozh <[email protected]>
Refactor and rearrange tests

1153e464a8bed1c85e75e3070fa0bc76a419b4b4 authored over 9 years ago by ozh <[email protected]>
Code coverage syntax nitpicking

functions-plugins.php not at 99.10%, 221 lines out of 223, covered :)

d295898f4e444da00134dc05f14bea3aa01fc368 authored over 9 years ago by ozh <[email protected]>
More tests

b26af8a69eb897355360bdddd989ce7eb5cc010c authored over 9 years ago by ozh <[email protected]>
More tests

f554906ca12091929b3bbe3c8ddd9b0997571349 authored over 9 years ago by ozh <[email protected]>
Add yourls_remove_all_(filters|actions)

0071965c1271c8e48776e26fe8a683d56139ac97 authored over 9 years ago by ozh <[email protected]>
Get die() ouf of yourls_plugin_admin_page()

This will make testing this function a lot easier, and it makes more sense to die after the func...

f3bc0bd33640bfd1fed92aacfb6dac3b20d375f8 authored over 9 years ago by ozh <[email protected]>
Improve global declarations

faabf0edb4d1823c2aad02a1b58420f43395255a authored over 9 years ago by ozh <[email protected]>
Allow interception of yourls_die()

[skip ci]

c6c8942ec0eab2640db15fdf19599f8a82c21e90 authored over 9 years ago by ozh <[email protected]>
More tests

30198dafd34fee6c773a41b9696bc6a315b46fd1 authored over 9 years ago by ozh <[email protected]>
Fix test on PHP 5.3

7737d15c0f6418f67900b6b0f5478a0d8bf75267 authored over 9 years ago by ozh <[email protected]>
Moar tests.

Code coverage for functions-plugin.php is at 81% :clap:

695a13944664cb518fb0dc7ecb2483794e773540 authored over 9 years ago by ozh <[email protected]>
More filter on small yourls_is_stuff() funcs

This will allow easier testing of various cases

2d2f4bcf25ecb710fd503d1611298580af1d37e6 authored over 9 years ago by ozh <[email protected]>
Deprecate function

It's a leftover from the era when we were loading includes/ files conditionally

c20fbf6e4369493342632d99540b0789f46275ec authored over 9 years ago by ozh <[email protected]>
Simpler syntax

5c34bc4b83dd9e1f80918abf7177a8bfc4bcce2d authored over 9 years ago by ozh <[email protected]>
Fix test

840c5f2aa865033d213c97c81e0ae7f33b7ae5da authored over 9 years ago by ozh <[email protected]>
+ some moar tests, - some duplicated ones (duh)

5001ee74519c63056cd8079c5bdb2acfde2f090b authored over 9 years ago by ozh <[email protected]>
Ignore dir

Also, how about removing test & debug stuff? Duh.
Also,[skip ci] -- http://docs.travis-ci.com/us...

135bb8e353bad3dc493e6238b556a0fe1e8dd67c authored over 9 years ago by ozh <[email protected]>
One moar test

0d17fa5732ccaa9476444506c4fb71a59f4a17dd authored over 9 years ago by ozh <[email protected]>
Moar tests

8458ed8881bc7430db530e645556fbb38b8eaf0e authored over 9 years ago by ozh <[email protected]>
Unneeded annotations and useless function

bfc6a82639b0fdaaebd109a7ef4d3da7547b1f16 authored over 9 years ago by ozh <[email protected]>
Remove unnecessary function_exists()

spl_object_hash() is PHP 5.2+

f678cd588714cd14b682ead36598d9ca6529e039 authored over 9 years ago by ozh <[email protected]>
Playing with filter priorities

b5b80b0710ff7b9fca6a513ef7603e7f542eb3a5 authored over 9 years ago by ozh <[email protected]>
Tests to remove filters

dcba0fc5d2d7fd282de96371e02c71f5c4500002 authored over 9 years ago by ozh <[email protected]>
Filter helper functions

return true, false, null, zero, '', []

c76f600f7391b0c2502c5caf0e875d26a2b85f44 authored over 9 years ago by ozh <[email protected]>
More URL tests and refactoring

aafbddec3ca7abe9aedbacd2bc45d9e9cca23c0b authored over 9 years ago by ozh <[email protected]>
Allow brackets in URLs. Fixes #1814

I can't think of a good reason not to.

1b9b9de58faa3ff350973c895c8ee97628b7b01f authored over 9 years ago by ozh <[email protected]>
Merge pull request #1894 from YOURLS/atlowercase

Improve lowercasing of scheme & domain

Fixes #1890

379dc7fe9714f2a429059db03bf34afe1272c63d authored over 9 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Correct @since, duh

28623b2330f8919b3a64092c961255af1d33d101 authored over 9 years ago by ozh <[email protected]>
Improve lowercasing of scheme & domain

Fixes #1890

b4b14a860e277b8eb221ff223d3ee5760f7da28f authored over 9 years ago by ozh <[email protected]>
Remove unnecessary compat functions

I mean, dude. PHP 4. Please.

9c73348aa680bd3648424594f0675247d40681af authored over 9 years ago by ozh <[email protected]>
Avoid notice when not set

In case a custom DB layer has rewritten the SQL query for instance

60193c64b0d4ec7209082f523def3b2d510b71ce authored over 9 years ago by ozh <[email protected]>
Allow custom table creation on install

This allows for instance an SQLite driver which requires slightly modified tables

fc583182659626d6cc42a1b2137a288f02367fa6 authored over 9 years ago by ozh <[email protected]>
Make sure we can bypass newer version check

e2ddad11eec7bf1471344e610625f264577c2f8b authored over 9 years ago by ozh <[email protected]>
For hackers: add comment about preventing XSS

6c6fc5f46e6ffc8fca99ecbb5dcd900e464d6032 authored over 9 years ago by ozh <[email protected]>
Use same timestamp in redirect than in new link

Ozh,

I found a problem in Yourls. It's not necessarily a problem with the code, but a problem ...

59382e55c188ec859c8ad79d4eae028691362495 authored over 9 years ago by ozh <[email protected]>
Wording. Fixes #1846

168622417d93f21745fce848a8cc6f18c4d5a5ac authored over 9 years ago by ozh <[email protected]>
Merge pull request #1882 from YOURLS/noobsite

Smarter domain convention in examples and source

412939f7d027d57b5fbf6ea1f77db142bbcca334 authored over 9 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Remove "gay" from offensive keywords

See #1777 on YOURLS/YOURLS

35e85a5f5ebf6fa6c2bc280ab1b0438e70bb83cf authored over 9 years ago by ozh <[email protected]>
Update PHPunit

5a64588693edc6dedaad210d1c778ef4b5a6bf9d authored over 9 years ago by ozh <[email protected]>
Smarter domain convention in examples and source

In config, readmes, editable files: the generic YOURLS install will be http://your-own-domain-he...

7225f8dff1384fe610e7e57b69a1c2036af45c2f authored over 9 years ago by ozh <[email protected]>
Prevent installation with default username/password.

Fixes #1864

abc7d6c52f6e0ddb8d930d3022f75b46617ee0d8 authored almost 10 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Merge pull request #1 from YOURLS/master

Update from original

29a58d03ea19398ea2efbf693a191898338453f9 authored almost 10 years ago by BestNa.me Labs <[email protected]>
Merge pull request #1862 from BstName/bugfix

Correction in yourls_die(): 'html_head' should be 'html_footer'

d80c5ac489f92564f203c23768b0c3df4b9e76c1 authored almost 10 years ago by Léo Colombaro <[email protected]>
Correction in yourls_die(): 'html_head' should be 'html_footer'

Now checking for html_footer action before the call to yourls_html_footer() (code was checking f...

99fa687d4abade1fd5a4738b95469db5dea7818a authored almost 10 years ago by BestNa.me Labs <[email protected]>
Merge pull request #1854 from fredl99/patch-1

Update functions-l10n.php

b0e96e65e2e71194497fb6ac936cbe5791e1b80e authored almost 10 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Update functions-l10n.php

´yourls_load_custom_textdomain´ can't read *.po files when ´$path´ is an absolute path on the se...

2436f835cecbcf9d10e316c97d75a45081ff1b82 authored almost 10 years ago by Fredl <[email protected]>
Add tini.link in the showcase

d708c2199e9a583ee7d4bab15f55ebe941391c7b authored about 10 years ago by ozh <[email protected]>
Ignore my tests files :-P :poop:

254053a63ef679afd115b3ddbfc7078872d73a31 authored about 10 years ago by ozh <[email protected]>
More URL tests & TODO tests

4ebadd0c4351daf1af09cc4c5d5a776a77162ae5 authored about 10 years ago by ozh <[email protected]>
Sync with recent Requests commits. Fixes #1796

e7eb9f35100eaad354530ac7717dae76183fa457 authored about 10 years ago by ozh <[email protected]>
one more test while I brush my teeth

things would be so much faster if I had an extra arm!

130e27a743c0998234d2f9c67897fac5c8d11499 authored about 10 years ago by ozh <[email protected]>
Moar tests

6e0de8294e8033685350ac8cad37373583857487 authored about 10 years ago by ozh <[email protected]>
Fetch titles with an optional fallback string

fa60b2a2a1ac0b40ded3fafe7a07f73a38ed5f67 authored about 10 years ago by ozh <[email protected]>
Stricter scheme detection

Valid: something1337:somepath
Invalid: 1337something:somepath

85c9e201b6adba95fd78913661a97c4fb6d7842b authored about 10 years ago by ozh <[email protected]>
Use @group notation

Syntax: phpunit --group something

7ae61ae57b75bcb2f3039753a75a1b88c0c6bd63 authored about 10 years ago by ozh <[email protected]>
No need to optimize here

08e72aa6d12543772851208dba7cdb54cb2bdf11 authored about 10 years ago by ozh <[email protected]>
Reorganize formatting tests

b0c394a9498d9b2517eb709b8f6dd3573b1cfbfb authored about 10 years ago by ozh <[email protected]>
Missing test.. Was it intentional?

18f6764682c4c91b390baa98403b9cf42fb0d6b1 authored about 10 years ago by ozh <[email protected]>
Close output buffer. Should fix UT on Travis.

28693f801d5154f012e6b61b059732c2fcc17245 authored about 10 years ago by ozh <[email protected]>
Revert "Better yourls_int2string() & yourls_string2int()"

Sadly, this may fail for large numbers or large strings. Thanks, unit tests!

b79dd6981eb0c3728452a9e79e1d0cdd5133a07b authored about 10 years ago by ozh <[email protected]>
Better yourls_int2string() & yourls_string2int()

50% faster and without needing BCMaths extension.
Tested with 20,000,000 random numbers and rand...

67a399f0f2edf2dd93748dba345f91159f29ca86 authored about 10 years ago by ozh <[email protected]>
Test hook priorities & parameters

ea999dd2a7a2ae23e8fa9062787a20679df8bede authored about 10 years ago by ozh <[email protected]>
Also test yourls_did_action()

953bacf985ce095ada5161cf0905ed7959d8b425 authored about 10 years ago by ozh <[email protected]>
multiple filters to same hook

14f434bd04599435e037f494578a456433b4711b authored about 10 years ago by ozh <[email protected]>
More compatibility tests

bcb477daa7872b3b2b729607d410d2b47c559061 authored about 10 years ago by ozh <[email protected]>
Hopefully suppress timezone warnings. Fixes #1804.

4b72d517a6c2d2f9499cdda426ac9fd5eab5eaf7 authored about 10 years ago by ozh <[email protected]>
Remove 5.2 from Travis

It made it impossible to test 5.3+ only PHP syntax. From now on and till the min version require...

2bd055355b94474e16c45b15cc5712485e4199fc authored about 10 years ago by ozh <[email protected]>
Screw it.

f91253fb72f493fc17d3808292c03c6f091a286e authored about 10 years ago by ozh <[email protected]>
Revert 5.3+ check. Allow 5.2 to fail?

790353103f76d6c110c82dd07bf1831afa5e558f authored about 10 years ago by ozh <[email protected]>
Test closures only if PHP 5.3+

8654e51c9719de81657b86ae5a93194a55f43542 authored about 10 years ago by ozh <[email protected]>
Merge branch 'master' of https://github.com/YOURLS/YOURLS-unit-tests

ddb227767e04d2079de9a833d3f584ec4e56f7a0 authored about 10 years ago by ozh <[email protected]>
Plugin filters: files & hooks

10b8249c09e7bc9800d2291e4818c348e13caa07 authored about 10 years ago by ozh <[email protected]>
Allow hooks with anonymous closures. See #1800.

37f54c79223c21f0ef7cd15ab62992f9205f748e authored about 10 years ago by ozh <[email protected]>
Google favicon update. Fixes #1803

d766f6dc8132c5417f4c600ae54b122dafcd1c1f authored about 10 years ago by ozh <[email protected]>
Still stabbing #1783

8ebbc09fce3276926ec8e889e7ba2e8d5e20d57f authored about 10 years ago by ozh <[email protected]>
Allow editing of URLs containing %

Die, issue #1783 !

e98e32c72c5508e3616b5bc15f25922c6b190e6b authored about 10 years ago by ozh <[email protected]>
Less noob requests about why they've been "hacked"

Seriously. https://www.google.com/search?q=%22we+have+hacked+this+title%22

3438b0670dbad6edbea97f8fae18e8010e347f5e authored about 10 years ago by ozh <[email protected]>
Merge pull request #1798 from chtaube/docfix/ie

Make readme.html work on IE11. Fixes #1797

1a8ccabf771358c293b428d93a1324128e4e7ab9 authored about 10 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Fixes getTabs() in readme.html to work on IE 11

d.innerHTML returns `<li class="Tab" id="MoreTab" ...` on IE 11, while
the regex expects `<li id...

eadf68d3c3daf74d757cb19c08348a7b8ac409ac authored about 10 years ago by Christian Taube <[email protected]>
Merge pull request #1792 from YOURLS/authcookie

Fix domain/subdomain cookie mismatch. Fixes #1673.

a2610427b98b2170e9d89909212be3efc794eb1d authored about 10 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
Oopsie, EOF newline

e87ec0b1945dae47f543b08d24d4cc0fc4ad732a authored about 10 years ago by ozh <[email protected]>
Delegate cookie name to its own function

76c993789f264f5d886b517eec2765f870e0b1c6 authored about 10 years ago by ozh <[email protected]>
Unique cookie name per install

806098437413c356f1eeeb84065ee509477be010 authored about 10 years ago by ozh <[email protected]>
Merge pull request #1788 from YOURLS/searchany

Search across all fields

1f150ee3ea89169b67b647a0191bac3fb6790a48 authored about 10 years ago by ྅༻ Ǭɀħ ༄༆ཉ <[email protected]>
CONCAT_WS instead of CONCAT

2802526a6bd4a8999d76fe6813992d4fe68855c1 authored about 10 years ago by ozh <[email protected]>