Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Stanley <chris@stanleynetworks.net>2015-10-20 00:48:30 +0300
committerChristopher Stanley <chris@stanleynetworks.net>2015-10-20 00:48:30 +0300
commitfdb7feaa08c54c00fb21a59c478b52984707cfa8 (patch)
treeb45842fb0e900d3d1104b68d17c8e2c8e5b87f2d
parentb48ff99a6dcd093b8d10f2dcda9376edc604faaf (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.php3
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)) {