]> CyberLeo.Net >> Repos - Github/YOURLS.git/log
Github/YOURLS.git
8 years agoTypo 1.7.1
ozh [Sat, 5 Dec 2015 20:59:49 +0000 (21:59 +0100)]
Typo

8 years agoMerge pull request #1998 from YOURLS/pr1824
ozh [Sat, 5 Dec 2015 11:51:33 +0000 (12:51 +0100)]
Merge pull request #1998 from YOURLS/pr1824

Dont fetch all page to get title. Fixes #1824

8 years agoNew Requests files
ozh [Sat, 5 Dec 2015 10:55:40 +0000 (11:55 +0100)]
New Requests files

8 years agoMerge branch 'master' into pr1824
ozh [Sat, 5 Dec 2015 10:54:03 +0000 (11:54 +0100)]
Merge branch 'master' into pr1824

8 years agoFilter to allow shunting external requests
ozh [Sat, 5 Dec 2015 10:33:55 +0000 (11:33 +0100)]
Filter to allow shunting external requests

8 years agoMerge pull request #1997 from YOURLS/php7
ozh [Fri, 4 Dec 2015 18:38:19 +0000 (19:38 +0100)]
Merge pull request #1997 from YOURLS/php7

PHP7 compatibility

8 years agoCall your parents, kid
ozh [Fri, 4 Dec 2015 18:34:28 +0000 (19:34 +0100)]
Call your parents, kid

8 years agoDamnit I didn't press 'Save' before pushing
ozh [Fri, 4 Dec 2015 18:27:22 +0000 (19:27 +0100)]
Damnit I didn't press 'Save' before pushing

8 years agoMore PHP7 fixes
ozh [Fri, 4 Dec 2015 18:24:54 +0000 (19:24 +0100)]
More PHP7 fixes

8 years agoCheck with PHP7
ozh [Fri, 4 Dec 2015 18:18:19 +0000 (19:18 +0100)]
Check with PHP7

8 years agoGoodbye FriendFeed !
ozh [Fri, 4 Dec 2015 17:09:04 +0000 (18:09 +0100)]
Goodbye FriendFeed !

Fixes #1986

8 years agoMerge branch 'master' of https://github.com/YOURLS/YOURLS
ozh [Fri, 4 Dec 2015 16:51:28 +0000 (17:51 +0100)]
Merge branch 'master' of https://github.com/YOURLS/YOURLS

8 years agoMerge pull request #1988 from berndblume/master
ozh [Fri, 4 Dec 2015 16:50:36 +0000 (17:50 +0100)]
Merge pull request #1988 from berndblume/master

Fix password auto encryption with slash(es)

Fixes #1994
Fixes #1987
Thanks @berndblume !

8 years agoSync Requests
ozh [Sat, 28 Nov 2015 17:23:11 +0000 (18:23 +0100)]
Sync Requests
Latest OK build on master: https://github.com/rmccue/Requests/tree/6f69bd206bfa4f00a1ec355ab7226ee64ac988dd

8 years agoDont download whole page when fetching title
ozh [Sat, 28 Nov 2015 16:47:08 +0000 (17:47 +0100)]
Dont download whole page when fetching title
Fixes 1824

8 years agofixed preg_quote to make password auto encryption work even when password contains...
Bernd Blume [Fri, 27 Nov 2015 01:35:50 +0000 (17:35 -0800)]
fixed preg_quote to make password auto encryption work even when password contains forward slashes

8 years agoSync with current version of Requests
ozh [Sun, 4 Oct 2015 15:38:20 +0000 (17:38 +0200)]
Sync with current version of Requests

Specifically, we're interested in the byte limit response feature

8 years agoTrim URL before sanitizing. Fixes #1931
ozh [Tue, 28 Jul 2015 10:42:59 +0000 (12:42 +0200)]
Trim URL before sanitizing. Fixes #1931

8 years agoFix oops from previous fix. Fixes #1915.
ozh [Fri, 5 Jun 2015 14:04:07 +0000 (16:04 +0200)]
Fix oops from previous fix. Fixes #1915.

For real!

8 years agoFix mb_ fallbacks and PCRE/u compat check
ozh [Fri, 5 Jun 2015 14:01:51 +0000 (16:01 +0200)]
Fix mb_ fallbacks and PCRE/u compat check

Fixes 1915

8 years agoProper docblock
ozh [Mon, 1 Jun 2015 20:45:08 +0000 (22:45 +0200)]
Proper docblock

[skip ci]

8 years agoAccept '02' and 2, as advertised in docblock
ozh [Sun, 31 May 2015 12:49:13 +0000 (14:49 +0200)]
Accept '02' and 2, as advertised in docblock

8 years agoRefine comments, rename function
ozh [Fri, 29 May 2015 21:12:27 +0000 (23:12 +0200)]
Refine comments, rename function

[skip ci]

8 years agoRefactor functions sending headers to be testable
ozh [Wed, 27 May 2015 15:40:45 +0000 (17:40 +0200)]
Refactor functions sending headers to be testable

By the way, not sure why one is in functions.php and the other one in functions-html.php ...

8 years agoRefactor function to be testable
ozh [Wed, 27 May 2015 15:38:58 +0000 (17:38 +0200)]
Refactor function to be testable

8 years agoToday I Learnt: you can't check consts for empty
ozh [Mon, 25 May 2015 19:39:40 +0000 (21:39 +0200)]
Today I Learnt: you can't check consts for empty

Doesn't work at all, interestingly for different reasons across PHP versions - http://3v4l.org/06f2E

8 years agoOopsie.
ozh [Mon, 25 May 2015 19:25:34 +0000 (21:25 +0200)]
Oopsie.

8 years agoRefactor proxy functions
ozh [Mon, 25 May 2015 11:07:38 +0000 (13:07 +0200)]
Refactor proxy functions

Easier testing.

8 years agoAvoid notices during unit tests
ozh [Sat, 23 May 2015 21:46:45 +0000 (23:46 +0200)]
Avoid notices during unit tests

[skip ci]

8 years agoLess if(function_exists())
ozh [Fri, 22 May 2015 20:07:13 +0000 (22:07 +0200)]
Less if(function_exists())

Because
- it hinders unit tests
- it makes code less readable
- it's easier to have compat functions and eventually deprecate them when no longer needed

8 years agoAvoid notices during unit tests
ozh [Thu, 21 May 2015 21:15:55 +0000 (23:15 +0200)]
Avoid notices during unit tests

8 years agoRemove static var
ozh [Mon, 18 May 2015 19:42:24 +0000 (21:42 +0200)]
Remove static var

- this makes testing impossible once a value has been set
- this prevents the function to be actually shuntable after the value has been set

8 years agoyourls_get_protocol() can return '', not false
ozh [Fri, 15 May 2015 19:45:39 +0000 (21:45 +0200)]
yourls_get_protocol() can return '', not false

8 years agoBetter version string sanitizing
ozh [Fri, 15 May 2015 13:15:08 +0000 (15:15 +0200)]
Better version string sanitizing

8 years agoCode coverage syntax nitpicking
ozh [Mon, 11 May 2015 18:03:43 +0000 (20:03 +0200)]
Code coverage syntax nitpicking

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

8 years agoAdd yourls_remove_all_(filters|actions)
ozh [Mon, 11 May 2015 09:50:01 +0000 (11:50 +0200)]
Add yourls_remove_all_(filters|actions)

8 years agoGet die() ouf of yourls_plugin_admin_page()
ozh [Mon, 11 May 2015 08:28:17 +0000 (10:28 +0200)]
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 function call, not within it.

[skip ci]

8 years agoImprove global declarations
ozh [Mon, 11 May 2015 07:42:01 +0000 (09:42 +0200)]
Improve global declarations

8 years agoAllow interception of yourls_die()
ozh [Mon, 11 May 2015 07:16:53 +0000 (09:16 +0200)]
Allow interception of yourls_die()

[skip ci]

8 years agoMore filter on small yourls_is_stuff() funcs
ozh [Thu, 7 May 2015 20:00:32 +0000 (22:00 +0200)]
More filter on small yourls_is_stuff() funcs

This will allow easier testing of various cases

8 years agoDeprecate function
ozh [Thu, 7 May 2015 19:50:59 +0000 (21:50 +0200)]
Deprecate function

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

8 years agoSimpler syntax
ozh [Thu, 7 May 2015 19:48:09 +0000 (21:48 +0200)]
Simpler syntax

8 years agoRemove unnecessary function_exists()
ozh [Wed, 6 May 2015 20:07:26 +0000 (22:07 +0200)]
Remove unnecessary function_exists()

spl_object_hash() is PHP 5.2+

9 years agoFilter helper functions
ozh [Sun, 3 May 2015 10:37:13 +0000 (12:37 +0200)]
Filter helper functions

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

9 years agoAllow brackets in URLs. Fixes #1814
ozh [Wed, 29 Apr 2015 14:51:35 +0000 (16:51 +0200)]
Allow brackets in URLs. Fixes #1814

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

9 years agoMerge pull request #1894 from YOURLS/atlowercase
྅༻ Ǭɀħ ༄༆ཉ [Wed, 29 Apr 2015 14:34:34 +0000 (16:34 +0200)]
Merge pull request #1894 from YOURLS/atlowercase

Improve lowercasing of scheme & domain

Fixes #1890

9 years agoCorrect @since, duh
ozh [Wed, 29 Apr 2015 14:25:09 +0000 (16:25 +0200)]
Correct @since, duh

9 years agoImprove lowercasing of scheme & domain
ozh [Wed, 29 Apr 2015 14:20:56 +0000 (16:20 +0200)]
Improve lowercasing of scheme & domain

Fixes #1890

9 years agoRemove unnecessary compat functions
ozh [Sun, 26 Apr 2015 17:13:26 +0000 (19:13 +0200)]
Remove unnecessary compat functions

I mean, dude. PHP 4. Please.

9 years agoAvoid notice when not set
ozh [Sat, 25 Apr 2015 09:47:05 +0000 (11:47 +0200)]
Avoid notice when not set

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

9 years agoAllow custom table creation on install
ozh [Thu, 23 Apr 2015 21:44:20 +0000 (23:44 +0200)]
Allow custom table creation on install

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

9 years agoMake sure we can bypass newer version check
ozh [Thu, 23 Apr 2015 21:38:27 +0000 (23:38 +0200)]
Make sure we can bypass newer version check

9 years agoFor hackers: add comment about preventing XSS
ozh [Mon, 20 Apr 2015 17:50:06 +0000 (19:50 +0200)]
For hackers: add comment about preventing XSS

9 years agoUse same timestamp in redirect than in new link
ozh [Thu, 16 Apr 2015 18:04:04 +0000 (20:04 +0200)]
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 none the less.

In functions.php, the timestamp is being written to the yourls_log and yourls_url db's differently, and depending on how the server is set up, it can cause a problem.

function yourls_log_redirect() writes the time with MySQL's NOW() keyword, while function yourls_insert_link_in_db() writes it with PHP's date('Y-m-d H:i:s').  On the webhost that I'm using, MySQL is using the server's time, not UTC, so it's 4 hours different than PHP's time, since PHP is being set with date_default_timezone_set( 'UTC' );

This drove me nuts for quite awhile until I realized what was going on.  Once I switched from NOW() to date('Y-m-d H:i:s') the problem went away and all my times are now the same. I believe both functions should use the same system for time so as to avoid this scenario.

BTW, great script!  I know I probably shouldn't ask ;) but... any idea when the next version will be released?  I read something about version 2.0 awhile back, but haven't heard anything since.

Thanks,
Frank

9 years agoWording. Fixes #1846
ozh [Thu, 16 Apr 2015 17:42:01 +0000 (19:42 +0200)]
Wording. Fixes #1846

9 years agoMerge pull request #1882 from YOURLS/noobsite
྅༻ Ǭɀħ ༄༆ཉ [Thu, 16 Apr 2015 14:09:16 +0000 (16:09 +0200)]
Merge pull request #1882 from YOURLS/noobsite

Smarter domain convention in examples and source

9 years agoSmarter domain convention in examples and source
ozh [Fri, 10 Apr 2015 20:46:06 +0000 (22:46 +0200)]
Smarter domain convention in examples and source

In config, readmes, editable files: the generic YOURLS install will be http://your-own-domain-here.com/ so that noob users get an obvious warning when they misconfigure something

In source comments, presumably read by hackers who have a clue, the generic YOURLS install will be http://sho.rt/. The generic long URL can be http://example.com/something-whatever

Closes #1841

9 years ago Prevent installation with default username/password.
྅༻ Ǭɀħ ༄༆ཉ [Thu, 12 Mar 2015 20:45:30 +0000 (21:45 +0100)]
 Prevent installation with default username/password.

Fixes #1864

9 years agoMerge pull request #1862 from BstName/bugfix
Léo Colombaro [Tue, 10 Mar 2015 18:13:40 +0000 (19:13 +0100)]
Merge pull request #1862 from BstName/bugfix

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

9 years agoCorrection in yourls_die(): 'html_head' should be 'html_footer'
BestNa.me Labs [Sun, 8 Mar 2015 18:38:59 +0000 (19:38 +0100)]
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 for html_head action instead, which is wrong).

9 years agoMerge pull request #1854 from fredl99/patch-1
྅༻ Ǭɀħ ༄༆ཉ [Sat, 28 Feb 2015 23:57:01 +0000 (00:57 +0100)]
Merge pull request #1854 from fredl99/patch-1

Update functions-l10n.php

9 years agoUpdate functions-l10n.php
Fredl [Sat, 28 Feb 2015 16:33:21 +0000 (17:33 +0100)]
Update functions-l10n.php

´yourls_load_custom_textdomain´ can't read *.po files when ´$path´ is an absolute path on the server and the leading slash is removed. (´trim´ removes on both ends)

9 years agoAdd tini.link in the showcase
ozh [Mon, 15 Dec 2014 06:54:07 +0000 (07:54 +0100)]
Add tini.link in the showcase

9 years agoIgnore my tests files :-P :poop:
ozh [Fri, 5 Dec 2014 15:46:56 +0000 (16:46 +0100)]
Ignore my tests files :-P :poop:

9 years agoSync with recent Requests commits. Fixes #1796
ozh [Sun, 30 Nov 2014 10:49:25 +0000 (11:49 +0100)]
Sync with recent Requests commits. Fixes #1796

9 years agoFetch titles with an optional fallback string
ozh [Wed, 5 Nov 2014 21:54:33 +0000 (22:54 +0100)]
Fetch titles with an optional fallback string

9 years agoStricter scheme detection
ozh [Wed, 5 Nov 2014 21:35:51 +0000 (22:35 +0100)]
Stricter scheme detection

Valid: something1337:somepath
Invalid: 1337something:somepath

9 years agoNo need to optimize here
ozh [Wed, 5 Nov 2014 16:13:16 +0000 (17:13 +0100)]
No need to optimize here

9 years agoClose output buffer. Should fix UT on Travis.
ozh [Mon, 3 Nov 2014 22:46:54 +0000 (23:46 +0100)]
Close output buffer. Should fix UT on Travis.

9 years agoRevert "Better yourls_int2string() & yourls_string2int()"
ozh [Mon, 3 Nov 2014 22:40:00 +0000 (23:40 +0100)]
Revert "Better yourls_int2string() & yourls_string2int()"

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

9 years agoBetter yourls_int2string() & yourls_string2int()
ozh [Mon, 3 Nov 2014 21:57:41 +0000 (22:57 +0100)]
Better yourls_int2string() & yourls_string2int()

50% faster and without needing BCMaths extension.
Tested with 20,000,000 random numbers and random strings to make sure they produce same results as previous functions

9 years agoHopefully suppress timezone warnings. Fixes #1804.
ozh [Sun, 2 Nov 2014 20:10:41 +0000 (21:10 +0100)]
Hopefully suppress timezone warnings. Fixes #1804.

9 years agoRemove 5.2 from Travis
ozh [Sun, 2 Nov 2014 10:57:44 +0000 (11:57 +0100)]
Remove 5.2 from Travis

It made it impossible to test 5.3+ only PHP syntax. From now on and till the min version requirement is officially 5.3, consider YOURLS to be "most likely 5.2 compatible"

9 years agoAllow hooks with anonymous closures. See #1800.
ozh [Sun, 2 Nov 2014 08:51:08 +0000 (09:51 +0100)]
Allow hooks with anonymous closures. See #1800.

9 years agoGoogle favicon update. Fixes #1803
ozh [Sat, 1 Nov 2014 14:48:53 +0000 (15:48 +0100)]
Google favicon update. Fixes #1803

9 years agoStill stabbing #1783
ozh [Sat, 1 Nov 2014 12:08:33 +0000 (13:08 +0100)]
Still stabbing #1783

9 years agoAllow editing of URLs containing %
ozh [Fri, 31 Oct 2014 22:27:51 +0000 (23:27 +0100)]
Allow editing of URLs containing %

Die, issue #1783 !

9 years agoLess noob requests about why they've been "hacked"
ozh [Fri, 31 Oct 2014 21:33:31 +0000 (22:33 +0100)]
Less noob requests about why they've been "hacked"

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

9 years agoMerge pull request #1798 from chtaube/docfix/ie
྅༻ Ǭɀħ ༄༆ཉ [Thu, 30 Oct 2014 18:05:02 +0000 (19:05 +0100)]
Merge pull request #1798 from chtaube/docfix/ie

Make readme.html work on IE11. Fixes #1797

9 years agoFixes getTabs() in readme.html to work on IE 11
Christian Taube [Wed, 29 Oct 2014 22:51:30 +0000 (22:51 +0000)]
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="MoreTab" ...` It seems like IE is changing
the order of the attributes within the tags.

9 years agoMerge pull request #1792 from YOURLS/authcookie
྅༻ Ǭɀħ ༄༆ཉ [Tue, 28 Oct 2014 20:30:49 +0000 (21:30 +0100)]
Merge pull request #1792 from YOURLS/authcookie

Fix domain/subdomain cookie mismatch. Fixes #1673.

9 years agoOopsie, EOF newline
ozh [Tue, 28 Oct 2014 20:28:59 +0000 (21:28 +0100)]
Oopsie, EOF newline

9 years agoDelegate cookie name to its own function
ozh [Tue, 28 Oct 2014 20:23:04 +0000 (21:23 +0100)]
Delegate cookie name to its own function

9 years agoUnique cookie name per install
ozh [Tue, 28 Oct 2014 20:06:28 +0000 (21:06 +0100)]
Unique cookie name per install

9 years agoMerge pull request #1788 from YOURLS/searchany
྅༻ Ǭɀħ ༄༆ཉ [Tue, 28 Oct 2014 19:18:35 +0000 (20:18 +0100)]
Merge pull request #1788 from YOURLS/searchany

Search across all fields

9 years agoCONCAT_WS instead of CONCAT
ozh [Tue, 28 Oct 2014 19:17:35 +0000 (20:17 +0100)]
CONCAT_WS instead of CONCAT

9 years agoMerge pull request #1791 from chtaube/docfix/1
྅༻ Ǭɀħ ༄༆ཉ [Tue, 28 Oct 2014 15:30:48 +0000 (16:30 +0100)]
Merge pull request #1791 from chtaube/docfix/1

Updated readme.html to point to nginx config in wiki. Removed outdated links.

9 years agoUpdated readme to point to nginx config in wiki. Removed outdated links.
Christian Taube [Tue, 28 Oct 2014 14:41:29 +0000 (14:41 +0000)]
Updated readme to point to nginx config in wiki. Removed outdated links.

9 years agoSearch across all fields
ozh [Mon, 27 Oct 2014 20:03:19 +0000 (21:03 +0100)]
Search across all fields

9 years agoExtra space for translation without trailing space
ozh [Mon, 27 Oct 2014 17:12:07 +0000 (18:12 +0100)]
Extra space for translation without trailing space

That trailing space in the translatable string was dumb, eh.

9 years agoHail contributors
ozh [Mon, 27 Oct 2014 11:45:22 +0000 (12:45 +0100)]
Hail contributors

9 years agoDeprecated function leftover, oopsie.
ozh [Sun, 26 Oct 2014 18:00:37 +0000 (19:00 +0100)]
Deprecated function leftover, oopsie.

9 years agoDeprecate yourls_apply_filters (plural). Fixes #1671.
ozh [Sun, 26 Oct 2014 15:34:41 +0000 (16:34 +0100)]
Deprecate yourls_apply_filters (plural). Fixes #1671.

9 years agoAdd title to API action "expand". Closes #1759
ozh [Sat, 25 Oct 2014 18:34:25 +0000 (20:34 +0200)]
Add title to API action "expand". Closes #1759

Thanks @digitaltoast, neat idea.

9 years agoMerge pull request #1728 from armsby/master
྅༻ Ǭɀħ ༄༆ཉ [Sat, 25 Oct 2014 18:28:59 +0000 (20:28 +0200)]
Merge pull request #1728 from armsby/master

Use rawurldecode() instead of urldecode()

Use case: shorten http://example.com/a+b/ and edit it.

9 years agoMerge pull request #1782 from YOURLS/bookmarklets
྅༻ Ǭɀħ ༄༆ཉ [Sat, 25 Oct 2014 17:20:55 +0000 (19:20 +0200)]
Merge pull request #1782 from YOURLS/bookmarklets

Readable JS for bookmarklets

9 years agoReadable JS code for bookmarklets, hell yeah.
ozh [Sat, 25 Oct 2014 08:04:37 +0000 (10:04 +0200)]
Readable JS code for bookmarklets, hell yeah.

Fixes #1710.

9 years agoMerge branch 'master' into bookmarklets
ozh [Fri, 24 Oct 2014 15:20:35 +0000 (17:20 +0200)]
Merge branch 'master' into bookmarklets

9 years agoDon't prefill empty input field. Fixes #1716.
ozh [Fri, 24 Oct 2014 15:11:59 +0000 (17:11 +0200)]
Don't prefill empty input field. Fixes #1716.

No need to use a jQuery fallback, by the way.

9 years agoMore API samples & details. Fixes #1764.
ozh [Fri, 24 Oct 2014 14:39:05 +0000 (16:39 +0200)]
More API samples & details. Fixes #1764.

Also, good bye Magra. Couldn't see it anymore. Welcome Fira Sans.