aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/filesystem.php
blob: 7878be0a5e0c93d41282223a9b4f81ca886dc2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
*
* @package phpBB3
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

namespace phpbb;

/**
* A class with various functions that are related to paths, files and the filesystem
* @package phpBB3
*/
class filesystem
{
	/**
	* Eliminates useless . and .. components from specified path.
	*
	* @param string $path Path to clean
	* @return string Cleaned path
	*/
	public function clean_path($path)
	{
		$exploded = explode('/', $path);
		$filtered = array();
		foreach ($exploded as $part)
		{
			if ($part === '.' && !empty($filtered))
			{
				continue;
			}

			if ($part === '..' && !empty($filtered) && $filtered[sizeof($filtered) - 1] !== '..')
			{
				array_pop($filtered);
			}
			else
			{
				$filtered[] = $part;
			}
		}
		$path = implode('/', $filtered);
		return $path;
	}
}
drakx-4f907af7a6f0c41eca346125f142852995ffac71.tar
drakx-4f907af7a6f0c41eca346125f142852995ffac71.tar.gz
drakx-4f907af7a6f0c41eca346125f142852995ffac71.tar.bz2
drakx-4f907af7a6f0c41eca346125f142852995ffac71.tar.xz
drakx-4f907af7a6f0c41eca346125f142852995ffac71.zip
- perl -pi -e 's!trouble shoot!troubleshoot!'
Diffstat (limited to 'perl-install/share')
-rw-r--r--perl-install/share/po/af.po4
-rw-r--r--perl-install/share/po/am.po4
-rw-r--r--perl-install/share/po/ar.po4
-rw-r--r--perl-install/share/po/az.po4
-rw-r--r--perl-install/share/po/be.po4
-rw-r--r--perl-install/share/po/bg.po4
-rw-r--r--perl-install/share/po/bn.po4
-rw-r--r--perl-install/share/po/br.po4
-rw-r--r--perl-install/share/po/bs.po4
-rw-r--r--perl-install/share/po/ca.po4
-rw-r--r--perl-install/share/po/cs.po4
-rw-r--r--perl-install/share/po/cy.po4
-rw-r--r--perl-install/share/po/da.po4
-rw-r--r--perl-install/share/po/de.po4
-rw-r--r--perl-install/share/po/el.po4
-rw-r--r--perl-install/share/po/eo.po4
-rw-r--r--perl-install/share/po/es.po4
-rw-r--r--perl-install/share/po/et.po4
-rw-r--r--perl-install/share/po/eu.po4
-rw-r--r--perl-install/share/po/fa.po4
-rw-r--r--perl-install/share/po/fi.po4
-rw-r--r--perl-install/share/po/fr.po4
-rw-r--r--perl-install/share/po/fur.po4
-rw-r--r--perl-install/share/po/ga.po4
-rw-r--r--perl-install/share/po/gl.po4
-rw-r--r--perl-install/share/po/he.po4
-rw-r--r--perl-install/share/po/hi.po4
-rw-r--r--perl-install/share/po/hr.po4
-rw-r--r--perl-install/share/po/hu.po4
-rw-r--r--perl-install/share/po/id.po6
-rw-r--r--perl-install/share/po/is.po4
-rw-r--r--perl-install/share/po/it.po4
-rw-r--r--perl-install/share/po/ja.po4
-rw-r--r--perl-install/share/po/ko.po4
-rw-r--r--perl-install/share/po/ky.po4
-rw-r--r--perl-install/share/po/libDrakX.pot4
-rw-r--r--perl-install/share/po/lt.po4
-rw-r--r--perl-install/share/po/ltg.po4
-rw-r--r--perl-install/share/po/lv.po4
-rw-r--r--perl-install/share/po/mk.po4
-rw-r--r--perl-install/share/po/mn.po4
-rw-r--r--perl-install/share/po/ms.po4
-rw-r--r--perl-install/share/po/mt.po4
-rw-r--r--perl-install/share/po/nb.po4
-rw-r--r--perl-install/share/po/nl.po4
-rw-r--r--perl-install/share/po/nn.po4
-rw-r--r--perl-install/share/po/pa_IN.po4
-rw-r--r--perl-install/share/po/pl.po4
-rw-r--r--perl-install/share/po/pt.po4
-rw-r--r--perl-install/share/po/pt_BR.po4
-rw-r--r--perl-install/share/po/ro.po4
-rw-r--r--perl-install/share/po/ru.po4
-rw-r--r--perl-install/share/po/sc.po4
-rw-r--r--perl-install/share/po/sk.po4
-rw-r--r--perl-install/share/po/sl.po4
-rw-r--r--perl-install/share/po/sq.po4
-rw-r--r--perl-install/share/po/sr.po4
-rw-r--r--perl-install/share/po/sr@Latn.po4
-rw-r--r--perl-install/share/po/sv.po4
-rw-r--r--perl-install/share/po/ta.po4
-rw-r--r--perl-install/share/po/tg.po4
-rw-r--r--perl-install/share/po/th.po4
-rw-r--r--perl-install/share/po/tl.po4
-rw-r--r--perl-install/share/po/tr.po4
-rw-r--r--perl-install/share/po/uk.po4
-rw-r--r--perl-install/share/po/uz.po4
-rw-r--r--perl-install/share/po/uz@cyrillic.po4
-rw-r--r--perl-install/share/po/vi.po4
-rw-r--r--perl-install/share/po/wa.po4
-rw-r--r--perl-install/share/po/zh_CN.po4
-rw-r--r--perl-install/share/po/zh_TW.po4
71 files changed, 143 insertions, 143 deletions
diff --git a/perl-install/share/po/af.po b/perl-install/share/po/af.po
index 3c81135ed..f6615dde8 100644
--- a/perl-install/share/po/af.po
+++ b/perl-install/share/po/af.po
@@ -3164,7 +3164,7 @@ msgstr ""
#: harddrake/sound.pm:390
#, c-format
-msgid "Trouble shooting"
+msgid "Troubleshooting"
msgstr "Probleemoplossing"
#: harddrake/sound.pm:397
@@ -3292,7 +3292,7 @@ msgstr ""
#: harddrake/sound.pm:470
#, c-format
-msgid "Sound trouble shooting"
+msgid "Sound troubleshooting"
msgstr "Klank foutopsporing"
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
diff --git a/perl-install/share/po/am.po b/perl-install/share/po/am.po
index 399846ad2..dcf12ca42 100644
--- a/perl-install/share/po/am.po
+++ b/perl-install/share/po/am.po
@@ -3026,7 +3026,7 @@ msgstr ""
#: harddrake/sound.pm:390
#, c-format
-msgid "Trouble shooting"
+msgid "Troubleshooting"
msgstr ""
#: harddrake/sound.pm:397
@@ -3124,7 +3124,7 @@ msgstr ""
#: harddrake/sound.pm:470
#, c-format
-msgid "Sound trouble shooting"
+msgid "Sound troubleshooting"
msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
diff --git a/perl-install/share/po/ar.po b/perl-install/share/po/ar.po
index 07fc32248..cfa3f3746 100644
--- a/perl-install/share/po/ar.po
+++ b/perl-install/share/po/ar.po