Project

General

Profile

Bug #99893

Updated by Xavier Perseguers almost 2 years ago

When you have a folder with a "+" in its name, the context menu does not pop up. 

 Reason: the AJAX call is passing the non-urlencoded name as parameter, thus replacing the "+" with a blank space. 

 h2. How to reproduce 

 Create a directory with a "+" symbol (cannot be done from TYPO3, do it in terminal): 

 <pre> 
 $ cd /path/to/fileadmin 
 $ mkdir two\+words 
 </pre> 

 Go to Fileadmin in TYPO3 Backend and try to show the context menu on that directory, within the file tree: 

 !folder.png! 

 Nothing happens! 


 h2. Technical info 

 - AJAX: https://v10.typo3dev.loc/typo3/index.php?route=%2Fajax%2Fcontext-menu&token=6204a3c98a8d4faed6ddc60d361a99d0748d6def&table=sys_file&uid=1:/a-foo/two+words/&context=tree 
 - We read the vanilla argument @uid=1:/a-foo/two+words/@ instead of the URL encoded one: 
   - either as @uid=1%3A%2Fa-foo%2Ftwo%2Bwords%2F@  
   - or @uid=1:/a-foo/two%2Fwords/@ or alike 
 

 Related to #93972

Back