Issue Details (XML | Word | Printable)

Key: MDL-14279
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mathieu Petit-Clair
Reporter: Mathieu Petit-Clair
Votes: 1
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Use get_file_url instead of manual slasharguments check

Created: 09/Apr/08 04:45 PM   Updated: 11/Jul/08 10:51 AM
Return to search
Component/s: General, RSS
Affects Version/s: 1.8, 1.9
Fix Version/s: 1.9.2

File Attachments: 1. Text File patch-get_file_url-18.txt (30 kB)
2. Text File patch-get_file_url-19.txt (31 kB)
3. Text File patch-get_file_url-19_20080707.txt (43 kB)

Issue Links:
Dependency
 

Participants: Bill Burgos, Eloy Lafuente (stronk7), Martin Dougiamas, Mathieu Petit-Clair, Petr Skoda and Ryan Smith
Security Level: None
Resolved date: 11/Jul/08
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
To fix MDL-13792, the function get_file_url was added. This bug aims to make use of it in every possible place. I will send in a big patch later (starting with 1.8) for review.

There is a problem with links to rss files, as most of them are to /rss/file.php, not /file.php. See /blog/rsslib.php, line 41, for one case of this. Possibilities :
 1) don't do anything, xml files shouldn't have non-ascii file names anyway
 2) modify get_file_url to make a link to /rss/file.php in these cases
 3) make a different function for rss links

I vote for #2. Petr? Eloy? What do you think?

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Mathieu Petit-Clair made changes - 09/Apr/08 04:49 PM
Field Original Value New Value
Description To fix MDL-13792, the function get_file_url was added. This bug aims to make use of it in every possible place. I will send in a big patch later (starting with 1.8) for review.

There is a problem with links to rss files, as most of them are to /rss/file.php, not /file.php. Possibilities :
 1) don't do anything, xml files shouldn't have non-ascii file names anyway
 2) modify get_file_url to make a link to /rss/file.php in these cases
 3) make a different function for rss links

I vote for #2. Petr? Eloy? What do you think?
To fix MDL-13792, the function get_file_url was added. This bug aims to make use of it in every possible place. I will send in a big patch later (starting with 1.8) for review.

There is a problem with links to rss files, as most of them are to /rss/file.php, not /file.php. See /blog/rsslib.php, line 41, for one case of this. Possibilities :
 1) don't do anything, xml files shouldn't have non-ascii file names anyway
 2) modify get_file_url to make a link to /rss/file.php in these cases
 3) make a different function for rss links

I vote for #2. Petr? Eloy? What do you think?
Mathieu Petit-Clair made changes - 09/Apr/08 05:45 PM
Attachment patch-get_file_url-18.txt [ 13581 ]
Eloy Lafuente (stronk7) made changes - 14/Apr/08 09:28 AM
Assignee Martin Dougiamas [ dougiamas ] Mathieu Petit-Clair [ scyrma ]
Eloy Lafuente (stronk7) made changes - 14/Apr/08 09:28 AM
Fix Version/s 1.9.1 [ 10240 ]
Mathieu Petit-Clair made changes - 18/Apr/08 01:22 PM
Priority Minor [ 4 ] Major [ 3 ]
Mathieu Petit-Clair made changes - 02/May/08 03:28 PM
Link This issue will help resolve MDL-11342 [ MDL-11342 ]
Mathieu Petit-Clair made changes - 02/May/08 05:29 PM
Attachment patch-get_file_url-19.txt [ 13843 ]
Martin Dougiamas made changes - 15/May/08 03:02 PM
Fix Version/s 1.9.2 [ 10280 ]
Fix Version/s 1.9.1 [ 10240 ]
Petr Skoda made changes - 05/Jul/08 06:39 PM
Fix Version/s 1.9.3 [ 10290 ]
Fix Version/s 1.9.2 [ 10280 ]
Mathieu Petit-Clair made changes - 07/Jul/08 05:27 PM
Attachment patch-get_file_url-19_20080707.txt [ 14457 ]
Mathieu Petit-Clair made changes - 07/Jul/08 05:31 PM
Attachment patch-get_file_url-19_20080707.txt [ 14457 ]
Mathieu Petit-Clair made changes - 07/Jul/08 05:31 PM
Attachment patch-get_file_url-19_20080707.txt [ 14458 ]
Mathieu Petit-Clair made changes - 07/Jul/08 05:32 PM
Attachment patch-get_file_url-19_20080707.txt [ 14458 ]
Mathieu Petit-Clair made changes - 07/Jul/08 05:33 PM
Attachment patch-get_file_url-19_20080707.txt [ 14459 ]
Mathieu Petit-Clair made changes - 11/Jul/08 10:46 AM
Fix Version/s 1.9.2 [ 10280 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 1.9.3 [ 10290 ]