Issue Details (XML | Word | Printable)

Key: MDL-1887
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael Schneider
Reporter: Gustav W Delius
Votes: 0
Watchers: 0
Operations

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

Can't create wiki with quote in the name

Created: 04/Sep/04 03:36 AM   Updated: 15/Nov/08 12:28 AM
Component/s: Wiki (1.x)
Affects Version/s: 1.5
Fix Version/s: None

Environment: All
Issue Links:
Relates
 

Participants: Gustav W Delius, Martin Dougiamas, Michael Blake and Michael Schneider
Security Level: None
Affected Branches: MOODLE_15_STABLE


 Description  « Hide
When I try to create a wiki with a single quote in the name then I get an error Can't create entry.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 16/Jan/05 05:54 AM
From Gustav Delius (gwd2 at york.ac.uk) Sunday, 16 January 2005, 04:47 AM:

The lines

/// If the page has a ' in it, it may have slashes added to it. Remove them if it does.

$page = ($page === false) ? stripslashes(EWIKI_PAGE_INDEX) : stripslashes($page);

in view.php are problematic. If you strip the slashes then you have to add them back before you use $page in database operations. But why strip them in the first place. The standard Moodle way of doing things is to keep them and only strip them when things are printed to the screen.

From Gustav Delius (gwd2 at york.ac.uk) Sunday, 16 January 2005, 05:54 AM:

I had a look and I assume the reason you strip those slashes is that ewiki likes it that way. So I simply added them back in the two places where $page is used in a database operation.


Michael Blake added a comment - 24/Aug/06 01:54 PM
assign to a valid user