Skip to content
This repository

Fix for issue 183 - allow additional characters in JFolder #1067

merged 2 commits into from over 1 year ago

4 participants

Aaron Schmitz Christophe Demko elinw Louis Landry
Aaron Schmitz

Allowed characters based on

Additional characters allowed in JFolder names: ()[]{}#$^+.'~`!@&=;,
Disallow : in JFolder names

Christophe Demko

see #1007

Aaron Schmitz

Are we depreciating the current file system?

elinw commented March 29, 2012

Christophe I don't understand the reference. Yes you have a pull request but from what i can tell first, you have not addressed this issue anywhere in your pull request (in fact JFolder and makeSafe both seem to have disappeared). If you are asking Aaron to make a similar pull request against your repo that's fine but you need to explain that not expect people to figure that out. There's no problem with people touching the same files as long as everyone is using git correctly.

In the mean time this is a highly useful and important bug fix ( : for sure should not be in the regex).

Christophe Demko

it's just a reference to the new file system because the old one will be deprecated

elinw commented March 29, 2012

So most of us can't read minds, it's important to explain what you mean when you paste a link.
I'm not sure what the fact that it will be deprecated has to do with the bug fix though.

Aaron Schmitz

As far as I can tell #1007 isn't going to be ready for a while. Do we want to get this fixed before we tag 12.2?

Louis Landry

Thanks Aaron!

Louis Landry LouisLandry merged commit 3727079 into from October 09, 2012
Louis Landry LouisLandry closed this October 09, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  libraries/joomla/filesystem/folder.php
2  libraries/joomla/filesystem/folder.php
@@ -661,7 +661,7 @@ public static function listFolderTree($path, $filter, $maxLevel = 3, $level = 0,
661 661
662 662
 	public static function makeSafe($path)
663 663
-		$regex = array('#[^A-Za-z0-9:_\\\/-]#');
+		$regex = array('#[^A-Za-z0-9_\\\/\(\)\[\]\{\}\#\$\^\+\.\'~`!@&=;,-]#');
665 665
 		return preg_replace($regex, '', $path);
666 666
667 667

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.