Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-23431 XMLDB editor fails to parse STATEMENTS properly in certain …

…cases
  • Loading branch information...
commit db3db60f7d0a02eff878aae0e531f753a759698e 1 parent 7c48c3c
Petr Skoda skodak authored

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

  1. +1 1  lib/xmldb/classes/XMLDBStatement.class.php
2  lib/xmldb/classes/XMLDBStatement.class.php
@@ -336,7 +336,7 @@ function getFieldsFromInsertSentence($sentence) {
336 336 $fields = array();
337 337
338 338 /// Get first part from the sentence (before VALUES)
339   - preg_match('/^\((.*)\)\s+VALUES/is', $sentence, $matches);
  339 + preg_match('/^\((.*)\)\s+VALUES/Us', $sentence, $matches);
340 340 if (isset($matches[1])) {
341 341 $part = $matches[1];
342 342 /// Convert the comma separated string to an array

0 comments on commit db3db60

Please sign in to comment.
Something went wrong with that request. Please try again.