diff options
author | Fatih Orhan <fatihorhan@gmail.com> | 2013-04-04 11:14:33 +0300 |
---|---|---|
committer | Fatih Orhan <fatihorhan@gmail.com> | 2013-04-04 11:14:33 +0300 |
commit | bf1be2bf4971688dfe925699c3797dac319cd4b8 (patch) | |
tree | 8e06e67dd93536cc660713cbf065fd5800cabc2d | |
parent | aa8e0a27e21c88dcaaf99af602219f1e79188a88 (diff) | |
download | wallabag-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-x | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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=?"); |