aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:14:33 +0300
committerFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:14:33 +0300
commitbf1be2bf4971688dfe925699c3797dac319cd4b8 (patch)
tree8e06e67dd93536cc660713cbf065fd5800cabc2d
parentaa8e0a27e21c88dcaaf99af602219f1e79188a88 (diff)
downloadwallabag-bf1be2bf4971688dfe925699c3797dac319cd4b8.tar.gz
wallabag-bf1be2bf4971688dfe925699c3797dac319cd4b8.tar.zst
wallabag-bf1be2bf4971688dfe925699c3797dac319cd4b8.zip
Don't add 'index.php' to url, REQUEST_URI has it
See http://php.net/manual/en/reserved.variables.server.php
-rwxr-xr-xindex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 167c4401..d89fa41c 100755
--- a/index.php
+++ b/index.php
@@ -84,7 +84,7 @@ function url(){
84 <li><a href="index.php">home</a></li> 84 <li><a href="index.php">home</a></li>
85 <li><a href="#">favorites</a></li> 85 <li><a href="#">favorites</a></li>
86 <li><a href="#">archive</a></li> 86 <li><a href="#">archive</a></li>
87 <li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>index.php?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> 87 <li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
88 </ul> 88 </ul>
89 <?php 89 <?php
90 $query = $db_handle->prepare("SELECT * FROM entries WHERE read=?"); 90 $query = $db_handle->prepare("SELECT * FROM entries WHERE read=?");