mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 19:52:28 +01:00
Update createurl.php
Added the installed site URL to the list of URLs that are already shortened to prevent any redirect loops.
This commit is contained in:
parent
b48ff99a6d
commit
fdb7feaa08
@ -66,7 +66,8 @@ else {
|
||||
|
||||
$urlr = $mysqli->real_escape_string($urlr);
|
||||
|
||||
$isshort = array('polr.me', 'polr.cf','bit.ly','is.gd','tiny.cc','adf.ly','ur1.ca','goo.gl','ow.ly','j.mp','t.co');
|
||||
//Add current install site to the list of already-short URL
|
||||
$isshort = array('polr.me', 'polr.cf','bit.ly','is.gd','tiny.cc','adf.ly','ur1.ca','goo.gl','ow.ly','j.mp','t.co', $wsa);
|
||||
|
||||
foreach ($isshort as $url_shorteners) {
|
||||
if(strstr($urlr, $protocol.$url_shorteners)) {
|
||||
|
Loading…
Reference in New Issue
Block a user