Issue Details (XML | Word | Printable)

Key: MDL-15096
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Valery Fremaux
Reporter: Petr Skoda
Votes: 0
Watchers: 1
Operations

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

global search dml conversion

Created: 03/Jun/08 06:39 AM   Updated: 16/Mar/09 02:09 AM
Return to search
Component/s: Global search
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Eloy Lafuente (stronk7), Petr Skoda and Valery Fremaux
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Valery Fremaux added a comment - 03/Jun/08 06:54 AM
Thanks Petr.

I've merged my side. We will keep an eye when I may commit back a few fixes. I'll tell you when I'm ready so we can check my local merges are OK with you.

Cheers.


Petr Skoda added a comment - 06/Jun/08 04:51 PM
Hello Valery,
are you planning to work on this next week?

Valery Fremaux added a comment - 06/Jun/08 08:39 PM
I'm not sure. I am actually with Jonathan Newman (Catalyst) in UK and we have a huge workplan to prepare. I will not have time for global search next week, neverthless can I avoid to work on it and do something else.

Petr Skoda added a comment - 06/Jun/08 10:24 PM
no problem, this is the only part that may wait - it will just break when we do the final removal of magic quotes and old dml function, the rest of moodle will work just fine

thanks for the info!


Valery Fremaux added a comment - 14/Mar/09 07:55 PM
Hi Petr,

was you who discarded the search_escape_string() function in search/lib ? So I can ask you my question :

Would'nt we have to remove that local escaping from search/indexlib.php there :

§230 -> §239

// object to insert into db
$doc->doctype = $document->doctype;
$doc->docid = $document->docid;
$doc->itemtype = $document->itemtype;
$doc->title = search_escape_string($document->title); <<<<<<<<
$doc->url = search_escape_string($document->url); <<<<<<<<
$doc->updated = time();
$doc->docdate = $document->date;
$doc->courseid = $document->course_id;
$doc->groupid = $document->group_id;

as there should be no more need for pre escaping string data witgh the new DB implementation. Am i right ?

Cheers.


Eloy Lafuente (stronk7) added a comment - 16/Mar/09 02:09 AM
Hi Valery,

yes, you're right. We don't need to escape data anymore. And yes, those escaping aren't needed any more (and they are out from HEAD if I'm not wrong).

Ciao