aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/path_helper.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/15351] Makes confirm_works in a router context (app.php)Tristan Darricau2017-09-081-0/+13
| | | | PHPBB3-15351
* [ticket/14440] Add commentsTristan Darricau2016-02-111-0/+1
| | | | PHPBB3-14440
* [ticket/14440] Correctly remove the web root path in update_web_root_pathTristan Darricau2016-02-041-1/+7
| | | | PHPBB3-14440
* [ticket/13697] Moving filesystem related functions to filesystem serviceMateBartus2015-04-161-3/+3
| | | | | | | | | | | | | | | | * Moving filesystem service to \phpbb\filesystem namespace * Wraping Symfony's Filesystem component * Moving filesystem related functions from includes/functions.php into \phpbb\filesystem\filesystem Functions moved (and deprecated): - phpbb_chmod - phpbb_is_writable - phpbb_is_absolute - phpbb_own_realpath - phpbb_realpath * Adding interface for filesystem service PHPBB3-13697
* Merge pull request #3055 from marc1706/ticket/13192Tristan Darricau2015-01-191-0/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | [ticket/13192] Add method for generating valid user page links based on mod_rewrite * marc1706/ticket/13192: [ticket/13192] Add test for app.php in external subfolder [ticket/13192] Use ltrim() instead of preg_replace() [ticket/13192] Order test cases consistently [ticket/13192] Remove app.php on mod rewrite even if app.php is outside root [ticket/13192] Pass correct parameters and rename method to get_valid_page [ticket/13192] Use get_valid_user_page in confirm_box() and cleanup globals [ticket/13192] Use get_valid_user_page method in build_url function [ticket/13192] Add method for generating valid user page links
| * [ticket/13192] Use ltrim() instead of preg_replace()Marc Alexander2015-01-101-1/+1
| | | | | | | | PHPBB3-13192
| * [ticket/13192] Remove app.php on mod rewrite even if app.php is outside rootMarc Alexander2015-01-041-4/+7
| | | | | | | | PHPBB3-13192
| * [ticket/13192] Pass correct parameters and rename method to get_valid_pageMarc Alexander2014-10-211-9/+9
| | | | | | | | PHPBB3-13192
| * [ticket/13192] Add method for generating valid user page linksMarc Alexander2014-10-211-0/+31
| | | | | | | | PHPBB3-13192
* | Merge pull request #8 from phpbb/ticket/security-169Joas Schilling2014-11-221-1/+7
|\ \ | | | | | | | | | [ticket/security-169] Stop loop through referer dir in top directory
| * | [ticket/security-169] Stop loop through referer dir in top directoryMarc Alexander2014-11-091-1/+7
| |/ | | | | | | SECURITY-169
* | [ticket/13280] Output escaping for the symfony request objectTristan Darricau2014-11-161-1/+5
|/ | | | PHPBB3-13280
* [ticket/12852] Add space after ifJakub Senko2014-09-041-1/+1
| | | | PHPBB3-12852
* [ticket/12852] Remove whitespaceJakub Senko2014-09-041-1/+1
| | | | PHPBB3-12852
* [ticket/12852] Make get_url_parts handle get variable with no valueJakub Senko2014-09-041-3/+21
| | | | PHPBB3-12852
* [ticket/12557] Fix php file descriptionn-aleha2014-08-071-1/+1
| | | | PHPBB3-12557
* [ticket/12787] Remove one app.php when it's both in $path and $web_root_pathTristan Darricau2014-07-051-1/+7
| | | | PHPBB3-12787
* [ticket/12787] Fix the absolute board urlTristan Darricau2014-06-291-1/+1
| | | | PHPBB3-12787
* [ticket/12787] Use a parameter (_referer) instead of the Referer headerTristan Darricau2014-06-291-2/+4
| | | | PHPBB3-12787
* [ticket/12099] Remove config againJoas Schilling2014-06-291-7/+3
| | | | PHPBB3-12099
* [ticket/12099] Correctly fix the path when performing AJAX requestsJoas Schilling2014-06-291-37/+82
| | | | | | | | | | | | | | | | | | | If the current request is a AJAX we need to fix the paths. We need to get the root path based on the Referer, so we can use the generated URLs in the template of the Referer. If we do not generate the relative path based on the Referer, but based on the currently requested URL, the generated URLs will not point to the intended locations: Referer desired URL desired relative root path memberlist.php faq.php ./ memberlist.php app.php/foo/bar ./ app.php/foo memberlist.php ../ app.php/foo app.php/fox ../ app.php/foo/bar memberlist.php ../../ ../page.php memberlist.php ./phpBB/ ../sub/page.php memberlist.php ./../phpBB/ PHPBB3-12099
* [ticket/12099] Add request argument to path_helper servicePico882014-06-291-2/+52
| | | | PHPBB3-12099
* Merge remote-tracking branch 'nickvergessen/ticket/12099' into develop-ascraeusMarc Alexander2014-06-261-19/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | * nickvergessen/ticket/12099: [ticket/12099] Fix correction in path_helper test [ticket/12099] Prepend ./ to path to fix assets [ticket/12099] Deduplicate path generation [ticket/12099] Fix clean_path() ".." stripping when previous directory was "." [ticket/12099] Break clean_path tests with a simple test [ticket/12099] Clean paths in tests [ticket/12099] Correctly fix go back to root before prepending the root path [ticket/12099] Clean some paths before using them [ticket/12099] Fix several issues in path_helper test
| * [ticket/12099] Prepend ./ to path to fix assetsJoas Schilling2014-06-091-2/+4
| | | | | | | | PHPBB3-12099
| * [ticket/12099] Deduplicate path generationJoas Schilling2014-06-091-20/+7
| | | | | | | | PHPBB3-12099
| * [ticket/12099] Correctly fix go back to root before prepending the root pathJoas Schilling2014-05-291-9/+13
| | | | | | | | | | | | This allows moving app.php outside of phpBB and still work as expected PHPBB3-12099
| * [ticket/12099] Clean some paths before using themJoas Schilling2014-05-291-2/+2
| | | | | | | | PHPBB3-12099
* | [ticket/12715] Cleanup comments in \phpbb\path_helperTristan Darricau2014-06-151-1/+1
|/ | | | PHPBB3-12715
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-4/+7
| | | | PHPBB3-12594
* [ticket/11508] Allow equal sign in parameter value.Cesar G2014-04-221-4/+6
| | | | PHPBB3-11508
* [ticket/11508] Remove unnecessary implode.Cesar G2014-04-221-1/+1
| | | | PHPBB3-11508
* [ticket/11508] Remove unnecessary isset check.Cesar G2014-04-221-4/+1
| | | | PHPBB3-11508
* [ticket/11508] Curly brace should be on its own line...Cesar G2014-04-221-1/+2
| | | | PHPBB3-11508
* [ticket/11508] Do not add the '?' unless there are parameters.Cesar G2014-04-221-1/+1
| | | | PHPBB3-11508
* [ticket/11508] Change separator parameter to a simple true|false $is_amp.Cesar G2014-04-221-8/+9
| | | | PHPBB3-11508
* [ticket/11508] Move helper functions to path_helper class.Cesar G2014-04-221-0/+115
| | | | PHPBB3-11508
* [ticket/12004] Support empty routes to app.php/ in path_helperMarc Alexander2014-04-111-0/+10
| | | | | | | | | | The symfony routing component allows us to use the path "/" for routes. Therefore, we should be able to use example.com/app.php/ for controllers. However, this currently does not properly work. The method get_web_root_path incorrectly returns phpbb_root_path. Therefore, paths to images or files are broken. PHPBB3-12004
* [ticket/11997] Remove obsolete function get_controller_redirect_url()Marc Alexander2013-12-271-24/+0
| | | | PHPBB3-11997
* [ticket/11997] Add clean_url() method to path_helperMarc Alexander2013-12-211-0/+23
| | | | | | This method will get rid of unnecessary . and .. in URLs. PHPBB3-11997
* [ticket/11997] Add method for controller redirect URLs to path helperMarc Alexander2013-12-071-0/+24
| | | | | | This method will allow us to get proper redirect URLs for controllers. PHPBB3-11997
* [ticket/11997] Fix redirects from inside controllersJoas Schilling2013-11-131-0/+21
| | | | | | | | | The redirect url currently uses the web root path. However as we prepend the full board url later, we need to remove the relative web root path and prepend the normal root path again. Otherwise redirects from inside routes will not work as intended. PHPBB3-11997
* [task/code-sniffer] Remove the IN_PHPBB check side-effect from class files.Andreas Fischer2013-10-301-8/+0
| | | | PHPBB3-11980
* [ticket/11874] Do not always prepend the web path; only replace phpbb_root_pathNathan Guse2013-10-101-7/+5
| | | | PHPBB3-11874
* [ticket/11852] Add class fileJoas Schilling2013-09-271-0/+175
PHPBB3-11852