]> CyberLeo.Net >> Repos - Github/YOURLS.git/log
Github/YOURLS.git
9 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 #1 from YOURLS/master
BestNa.me Labs [Tue, 10 Mar 2015 18:43:46 +0000 (19:43 +0100)]
Merge pull request #1 from YOURLS/master

Update from original

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.

9 years agoClean <head>. Fixes #1762.
ozh [Fri, 24 Oct 2014 13:42:15 +0000 (15:42 +0200)]
Clean <head>. Fixes #1762.

9 years agoMerge pull request #1777 from silsha/master
྅༻ Ǭɀħ ༄༆ཉ [Sat, 11 Oct 2014 08:19:52 +0000 (10:19 +0200)]
Merge pull request #1777 from silsha/master

Remove 'gay' from filterlist

9 years agoMerge pull request #1776 from szepeviktor/patch-1
྅༻ Ǭɀħ ༄༆ཉ [Sat, 11 Oct 2014 08:19:11 +0000 (10:19 +0200)]
Merge pull request #1776 from szepeviktor/patch-1

no **S**trong in GH markdown

9 years agoRemove 'gay' from filterlist
silsha [Fri, 10 Oct 2014 23:03:44 +0000 (01:03 +0200)]
Remove 'gay' from filterlist

9 years agono **S**trong in markdown
Viktor Szépe [Fri, 10 Oct 2014 22:44:59 +0000 (00:44 +0200)]
no **S**trong in markdown

9 years agoMore noob friendliness
ozh [Tue, 9 Sep 2014 13:03:55 +0000 (15:03 +0200)]
More noob friendliness

- Explain DB driver. Fixes #1721
- No, it's not define('http://mydomain.com', 'http://site.com'). Fixes several issues.
- Emphasize use of a text editor, see https://github.com/YOURLS/YOURLS/issues/1715#issuecomment-54931268

9 years agoStuff loaded over HTTPS to prevent mixed content
ozh [Fri, 5 Sep 2014 19:36:10 +0000 (21:36 +0200)]
Stuff loaded over HTTPS to prevent mixed content

9 years agoAdd debug info if auth cookie cannot be stored
ozh [Thu, 4 Sep 2014 11:15:55 +0000 (13:15 +0200)]
Add debug info if auth cookie cannot be stored

See #1754 https://github.com/YOURLS/YOURLS/issues/1754#issuecomment-54304363

9 years agoMerge branch 'master' of https://github.com/YOURLS/YOURLS
ozh [Wed, 3 Sep 2014 18:48:54 +0000 (20:48 +0200)]
Merge branch 'master' of https://github.com/YOURLS/YOURLS

9 years agoNew URL for shorttail
ozh [Wed, 3 Sep 2014 18:48:33 +0000 (20:48 +0200)]
New URL for shorttail

9 years agoInclude BookmarkletGen
ozh [Sat, 30 Aug 2014 19:47:17 +0000 (21:47 +0200)]
Include BookmarkletGen

9 years agoMerge pull request #1748 from magno32/staging
྅༻ Ǭɀħ ༄༆ཉ [Thu, 21 Aug 2014 21:11:29 +0000 (23:11 +0200)]
Merge pull request #1748 from magno32/staging

Adding a line break for URLs that are very long.

9 years agoAdding a line break for URLs that are very long.
Justin Smith [Thu, 21 Aug 2014 19:48:18 +0000 (14:48 -0500)]
Adding a line break for URLs that are very long.

9 years agoUpdate functions-html.php
armsby [Tue, 15 Jul 2014 09:51:31 +0000 (11:51 +0200)]
Update functions-html.php

switched from urldecode to rawurldecode in line 464 as urldecode decode + sign in to space and invalidate the url rawurldecode does not

9 years agoAdd an empty composer.json to push YOURLS on Packagist
Leo Colombaro [Sat, 28 Jun 2014 15:38:48 +0000 (17:38 +0200)]
Add an empty composer.json to push YOURLS on Packagist

This will allow fetching YOURLS via Composer

10 years agoRevert "More helpful "URL exists" notice. Fixes #1676"
ozh [Tue, 6 May 2014 12:08:49 +0000 (14:08 +0200)]
Revert "More helpful "URL exists" notice. Fixes #1676"

Revert 8085ddb -- messages should not contain HTML as they are also
used by the API

10 years agoMore helpful "URL exists" notice. Fixes #1676
ozh [Tue, 6 May 2014 09:38:47 +0000 (11:38 +0200)]
More helpful "URL exists" notice. Fixes #1676

10 years agoAvoid notices with incomplete plugin headers
ozh [Tue, 6 May 2014 09:29:21 +0000 (11:29 +0200)]
Avoid notices with incomplete plugin headers

10 years agoNo need to substr() URLs. Fixes #1689
ozh [Mon, 5 May 2014 13:48:12 +0000 (15:48 +0200)]
No need to substr() URLs. Fixes #1689

URLs are stored in the DB as `text`, so the limit enforced by MySQL will be 65536 -- no need to enforce anything ourselves.

10 years agoMerge pull request #1684 from rbeede/master
྅༻ Ǭɀħ ༄༆ཉ [Sun, 27 Apr 2014 17:41:15 +0000 (19:41 +0200)]
Merge pull request #1684 from rbeede/master

Remove XSS from examplepage.php. Fixes #1683.

10 years agoUpdated generic error message
Rodney Beede [Sat, 26 Apr 2014 18:37:16 +0000 (13:37 -0500)]
Updated generic error message

10 years agoRemove XSS vulnerability
Rodney Beede [Sat, 26 Apr 2014 18:36:32 +0000 (13:36 -0500)]
Remove XSS vulnerability

Removed the unsanitized $_SERVER variables to remove the XSS vulnerability.

10 years agoMake sprintf'ed strings sprintf-safe. Fixes #1665.
ozh [Wed, 26 Mar 2014 21:53:36 +0000 (22:53 +0100)]
Make sprintf'ed strings sprintf-safe. Fixes #1665.

10 years agoIf applicable, always echo the favicon. Fixes #1656
ozh [Mon, 17 Mar 2014 20:09:52 +0000 (21:09 +0100)]
If applicable, always echo the favicon. Fixes #1656

10 years agoShowcase: CUNY
ozh [Tue, 25 Feb 2014 19:56:30 +0000 (20:56 +0100)]
Showcase: CUNY

10 years agoFilterable number of rows in admin view. Fixes #1641
ozh [Mon, 17 Feb 2014 07:34:06 +0000 (08:34 +0100)]
Filterable number of rows in admin view. Fixes #1641

Related: #1354

10 years agoMove requires in their own function (for UT)
ozh [Sun, 9 Feb 2014 12:13:06 +0000 (13:13 +0100)]
Move requires in their own function (for UT)

10 years agophpdoc clarification
ozh [Sat, 8 Feb 2014 21:44:39 +0000 (22:44 +0100)]
phpdoc clarification

10 years agoAllow unsetting locale
ozh [Sat, 8 Feb 2014 20:07:34 +0000 (21:07 +0100)]
Allow unsetting locale

10 years agoNotice if translation not found. Fixes #1628
ozh [Sat, 8 Feb 2014 10:23:50 +0000 (11:23 +0100)]
Notice if translation not found. Fixes #1628

10 years agoConstructors must not return values
ozh [Fri, 7 Feb 2014 21:23:29 +0000 (22:23 +0100)]
Constructors must not return values

10 years agoComply to RFC 3986. Fixes #1630.
ozh [Fri, 7 Feb 2014 21:00:33 +0000 (22:00 +0100)]
Comply to RFC 3986. Fixes #1630.

10 years agoMerge branch 'master' of https://github.com/YOURLS/YOURLS
ozh [Fri, 7 Feb 2014 14:54:34 +0000 (15:54 +0100)]
Merge branch 'master' of https://github.com/YOURLS/YOURLS

10 years agoHeh. Just found out about str_shuffle().
ozh [Fri, 7 Feb 2014 14:14:50 +0000 (15:14 +0100)]
Heh. Just found out about str_shuffle().

10 years agoCheck if DB server is dead
ozh [Fri, 7 Feb 2014 10:16:44 +0000 (11:16 +0100)]
Check if DB server is dead

10 years agoRequire connection handle before running a query
ozh [Thu, 6 Feb 2014 13:02:06 +0000 (14:02 +0100)]
Require connection handle before running a query

10 years agoDon't forget to call parents' constructors, duh.
ozh [Thu, 6 Feb 2014 12:33:42 +0000 (13:33 +0100)]
Don't forget to call parents' constructors, duh.

10 years agoSync ezSQL
ozh [Tue, 4 Feb 2014 15:29:02 +0000 (16:29 +0100)]
Sync ezSQL

10 years agoConstructor constructor defined twice twice, oops
ozh [Tue, 4 Feb 2014 15:22:50 +0000 (16:22 +0100)]
Constructor constructor defined twice twice, oops

10 years agoMove function to db file. Comply to debug mode.
ozh [Tue, 4 Feb 2014 15:12:12 +0000 (16:12 +0100)]
Move function to db file. Comply to debug mode.

10 years agoSimpler base encoding checks
ozh [Sun, 2 Feb 2014 19:30:57 +0000 (20:30 +0100)]
Simpler base encoding checks