Fixed Broken Shit
This commit is contained in:
21
user/plugins/YOURLS-Forward-Slash-In-Urls-master/LICENSE.md
Normal file
21
user/plugins/YOURLS-Forward-Slash-In-Urls-master/LICENSE.md
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 William Bargent
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
22
user/plugins/YOURLS-Forward-Slash-In-Urls-master/README.md
Normal file
22
user/plugins/YOURLS-Forward-Slash-In-Urls-master/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
Allow Forward Slashes in Short URLs
|
||||
---------------------------------------------
|
||||
|
||||
- Plugin Name: Allow Forward Slashes in Short URLs
|
||||
- Plugin URI: http://williambargent.co.uk
|
||||
- Description: Allow Forward Slashes in Short URLs
|
||||
- Version: 1.0
|
||||
- Author: William Bargent
|
||||
|
||||
|
||||
This plugin will allow forward slashes `/` in keywords when shortening URLS with YOURLS.
|
||||
|
||||
*NOTE This plugin will not work with URL Forwarding plugins active. Deactivate before activating this plugin.
|
||||
|
||||
###Installation
|
||||
|
||||
1. Download these file as a .zip.
|
||||
2. Extract the three files and copy them into a `New Folder` called `forward-slash-in-urls`.
|
||||
3. Copy this folder.
|
||||
4. Paste this folder in your YOURLs directory under `users/plugins/`.
|
||||
5. Go to your plugin manager and click `Activate`.
|
22
user/plugins/YOURLS-Forward-Slash-In-Urls-master/plugin.php
Normal file
22
user/plugins/YOURLS-Forward-Slash-In-Urls-master/plugin.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Plugin Name: Allow Forward Slashes in Short URLs
|
||||
Plugin URI: http://williambargent.co.uk
|
||||
Description: Allow Forward Slashes in Short URLs
|
||||
Version: 1.0
|
||||
Author: William Bargent
|
||||
Author URI: http://williambargent.co.uk
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if( !defined( 'YOURLS_ABSPATH' ) ) die();
|
||||
|
||||
yourls_add_filter( 'get_shorturl_charset', 'slash_in_charset' );
|
||||
function slash_in_charset( $in ) {
|
||||
return $in.'/';
|
||||
}
|
||||
|
||||
|
||||
//This plugin will not work with URL forwarding plugins active
|
Reference in New Issue
Block a user