diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-02 05:39:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-02 05:39:10 +0000 |
commit | 1c101a3b347b7240ab08e7ee03ab4c24673e58d8 (patch) | |
tree | 89196b19bc757d4e347a380aa027ea163bacbfeb /lib | |
parent | cf2e2488779f60251d66f375273d9b2583528f64 (diff) | |
download | ampache-1c101a3b347b7240ab08e7ee03ab4c24673e58d8.tar.gz ampache-1c101a3b347b7240ab08e7ee03ab4c24673e58d8.tar.bz2 ampache-1c101a3b347b7240ab08e7ee03ab4c24673e58d8.zip |
fixed paging on search, and fixed get_location
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui.lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 7e164e45..a6b03629 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -600,7 +600,7 @@ function get_location() { } /* Sanatize the $_SERVER['PHP_SELF'] variable */ - $source = str_replace(Config::get('raw_web_path'),"",$source); + $source = ltrim($source, Config::get('raw_web_path')); $location['page'] = preg_replace("/^\/(.+\.php)\/?.*/","$1",$source); switch ($location['page']) { |