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
* cleanup geo functions
* add support for CloudFlare's Country GEO header without the need for IP resolution and database
* ensure flag URL always returns a string, instead of false on failure as the result is always used as a string (without validation)
* add helper yours_get_db() so we don't need to use "global $ydb" throughout and it ensures that ydb is always initialised correctly and hasn't ever been changed to something incompatible.
* simplify debug get log
* tidy up code and phpdocs for functions-plugins
* cleanup & phpdocs for parts of functions.php
Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>
This merge commit is about testing the plugin API with a dummy plugin, not a real one that will affect YOURLS behavior.
- Provide dummy plugin to test the API
- Simplify logic of tests in NextDecimal_Tests to only test what is supposed to be tested.
- Enhance documentation comments
- Cleanup after tests
- Specific error message if misconfig
- Unit test debug functions
Co-authored-by: Léo Colombaro <git@colombaro.fr>
Attempt to fix the "PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute'" thrown on PHP 5.4. It could be that issuing PDO::getAttribute() before being connected to the DB prevents exception from being caught
Keep $option low level functions and var in YDB, so new \Option don't start from zero each time and actually read value from $ydb instead of getting from DB each time.
Also, enforce utf8 at connection, is this a good idea? Test units will tell, later.
Also, more stuff here and there.
- new log message queue
- Include all files first, then do stuff
- Allow to completely replace the DB class
PDO seems to work.
Checked: install YOURLS, add/remove/edit link, stats.
Change load order
- Include all files first, then do stuff
- Allow to completely replace the DB class
Code cleanup & new log message queue
- now using a global object $ydb for everything related to DB and other globally needed stuff
- change in DB schema: now storing URLs with their keyword as used in shorturl, allowing for any keyword length
- change in DB schema: new table for storing various options including next_id, dropping table of the same name
- change in DB schema: new table for storing hits (for stats)
- added an upgrader from 1.3 to 1.4
- improved the installer, with .htaccess file creation
git-svn-id: http://yourls.googlecode.com/svn/trunk@103 12232710-3e20-11de-b438-597f59cd7555
- check for MySQL server running
- More HTML template tags
- Bookmarklet & Tools page
- 1st attempt at filtering XSS hacks when adding new URL
- Hide SQL errors
- 1st code cleanup in admin/index.php to separate code and display
- default bigger font
- favicon
- no more ### ugly comments, all //
- stricter coding to prevent notices with undefined indexes
- hide PHP notices, unless YOURLS_DEBUG constant set to true
git-svn-id: http://yourls.googlecode.com/svn/trunk@77 12232710-3e20-11de-b438-597f59cd7555