diff options
author | Christopher Stanley <chris@stanleynetworks.net> | 2015-10-20 00:48:30 +0300 |
---|---|---|
committer | Christopher Stanley <chris@stanleynetworks.net> | 2015-10-20 00:48:30 +0300 |
commit | fdb7feaa08c54c00fb21a59c478b52984707cfa8 (patch) | |
tree | b45842fb0e900d3d1104b68d17c8e2c8e5b87f2d | |
parent | b48ff99a6dcd093b8d10f2dcda9376edc604faaf (diff) |
Update createurl.php
Added the installed site URL to the list of URLs that are already shortened to prevent any redirect loops.
-rw-r--r-- | createurl.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/createurl.php b/createurl.php index b42b73d..86279e7 100644 --- a/createurl.php +++ b/createurl.php @@ -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)) { |