1
0
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:
Christopher Stanley 2015-10-19 17:48:30 -04:00
parent b48ff99a6d
commit fdb7feaa08

View File

@ -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)) {