20 Commits

Author SHA1 Message Date
jarebear6expepjozn6rakjq5iczi3irqwphcvbswgkahd6b6twnxxid
8e57e1a30a
Use sandbox for all included files (#3478)
- updated calls to functions
- deprecate function yourls_activate_plugin_sandbox()
- add unit tests
- log loaded files
- tweak yourls_debug_log to allow early uses

Co-authored-by: e-ht <1045813+e-ht@users.noreply.github>
Co-authored-by: eht <1045813+e-ht@users.noreply.github.com>
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>

Closes #3321
2023-02-12 13:31:46 +01:00
྅༻ Ǭɀħ ༄༆ཉ
2edfa136e1
Inline documentation (#3329)
Now 100% complete
2022-05-06 18:39:37 +02:00
྅༻ Ǭɀħ ༄༆ཉ
9def41dba8
Remove warnings on PHP 8.1 (#3317)
Also, minor code styles doc & typo
* Refactor yourls_filter_unique_id() to remove useless vars
* Comply with phpstan level 4
* add some tests to cover newly discovered potential issues
2022-05-02 08:09:18 +02:00
྅༻ Ǭɀħ ༄༆ཉ
5deeec7edb
Plugin API : sandbox and uninstall procedure (#3258)
- foolproof (?) activation sandbox that actually works
- uninstall method
- Plugin activation sandbox and unit tests
- Uninstall script and tests
2022-04-03 21:59:35 +02:00
྅༻ Ǭɀħ ༄༆ཉ
ac4613a1f9
Make element ID independent from the short URL (#3244)
Fixing a dumb idea introduced in version 0.1 :^P

Fixes #2925
2022-03-12 18:02:26 +01:00
྅༻ Ǭɀħ ༄༆ཉ
a5dabae35d
Refactor admin/index.php & more filters (#2912)
* Move some logic from admin/index.php to own class
* Comments & documentation
2021-05-07 17:00:16 +02:00
྅༻ Ǭɀħ ༄༆ཉ
b347c36b33
Fix that fucking encoding problem (#2690)
This commit's changelog

- less encode/decode
- update jQuery & remove old ones
- No encoding in JS
- Also, 4 spaces in JS too, duh
- IDN domain functions
- Use mb_ functions to preverse IDN domains
- Support for UTF8MB4
- update install procedure
- update upgrade procedure. Note: The log table will be left untouched by the upgrade, it's impossible to make a convenient upgrade script for thousands of rows. The only problem will be if someone uses UTF8 short URLs (eg `http://sho.rt/éé💩`)
- Handle normalization of IDN domains & tests
- Fix warning on 7.2 and 7.3
- Deal with encoding in bookmarklets
- Enclose upgrade queries in a transaction
- Force no caching upon install or upgrade. Note: Strange behavior: if YOURLS hosted on an IDN domain, browser (FF at least) caches the redirection from admin/index.php to admin/install.php
- Support for IDN YOURLS hosting
- Tests for IDN YOURLS hosting
- Fix code (that will never get run again)
- Don't cache ajax requests
- Remove unnecessary function call
- Add comment doc block
- More IDN sanitizing tests
- IDN : Screw the "open dots". Who's going to type domain。com instead of domain.com anyway? Seriously. (although these do pass on my dev box)
- Deprecate yourls_lowercase_scheme_domain()
- Update doc to reflect DB change
2020-10-10 16:09:36 +02:00
྅༻ Ǭɀħ ༄༆ཉ
960f73fe4e
Revise yourls_date_i18n() (#2701)
* Revise yourls_date_i18n()
* Remove useless function
* Save one query on each call 🙄 

Fixes #2694
2020-05-24 19:23:24 +02:00
྅༻ Ǭɀħ ༄༆ཉ
c1517f1f84
Smarter keyword sanitization (#2682)
* Smarter keyword sanitizing, based on context
* Deprecate yourls_sanitize_string()

Fixes #2646.
Fixes #2128.
2020-05-09 13:10:27 +02:00
྅༻ Ǭɀħ ༄༆ཉ
fd4b927808
Split functions.php in smaller files
New function files for:
* debug
* options
* links
* geo
* shorturls
Fixes #2654

* Regroup and always load auth functions
Fixes #2662
Fixes #2661 

Co-authored-by: paulgoodchild <paulgoodchild@users.noreply.github.com>
2020-05-01 12:05:15 +02:00
ozh
d31057cdc6 Deprecated escape func; tweak string validation
[skip ci]
2017-09-02 19:08:39 +02:00
ozh
07a88789fc // @codeCoverageMeh 2017-06-23 00:00:16 +02:00
ozh
183d6fd97b Another $int over $in since it's about int 2017-04-20 22:15:10 +02:00
ozh
1a4b0e1240 Refine comments, rename function
[skip ci]
2015-05-29 23:12:27 +02:00
ozh
18cc1a4d3e Refactor proxy functions
Easier testing.
2015-05-25 13:07:38 +02:00
ozh
c20fbf6e43 Deprecate function
It's a leftover from the era when we were loading includes/ files conditionally
2015-05-07 21:50:59 +02:00
ozh
88a7fe28fe Deprecate yourls_apply_filters (plural). Fixes #1671. 2014-10-26 16:34:41 +01:00
ozh
20536d7ddd Undeprecate: yourls_has_interface() is used in the future 2014-01-08 17:10:20 +01:00
ozh
8c8eabf791 Deprecated stuff to their file 2013-12-30 18:22:00 +01:00
ozh
1c86f4e22e Cleaning: deprecated stuff in their own file
Having all deprecated functions in one place will make it easier to check whether some are still in use, see 57f69f08c ...
2013-12-30 17:53:10 +01:00