Commit dcb8d734 authored by Andrew Berezovsky's avatar Andrew Berezovsky
Browse files

Fixed [#2434663] + some code style fixes.

parent 0e05f5a4
Loading
Loading
Loading
Loading
+1 −1
Changes for imageeditor.pages.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ function imageeditor_upload($codename) {

  global $base_url;
  // TODO: need to fix this somehow... @see imageeditor_inline_url_to_uri().
  $filepath = '@' . drupal_realpath(str_replace($base_url . '/', '', $_POST['url']));
  $filepath = '@' . drupal_realpath(str_replace($base_url . '/', '', rawurldecode($_POST['url'])));
  $post = $filepath;
  if ($post_callback = ctools_plugin_get_function($plugin, 'post_callback')) {
    $post = $post_callback($filepath);
+2 −1
Changes for imageeditor_inline/imageeditor_inline.pages.inc: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ function imageeditor_inline_save() {
        $alert .= 'Image file ownership has been changed to you.' . "\n";
      }
      file_save($file);
      // TODO: update image dimensions in image fields - see file_entity module.
    }
  }

@@ -164,7 +165,7 @@ function imageeditor_inline_urltouri($url) {
  // Allow other modules to recognize url and provide uri.
  foreach (module_invoke_all('imageeditor_inline_urltouri', $url) as $value) {
    if ($value) {
      return $value;
      return rawurldecode($value);
    }
  }
}
+1 −1

File changed.

Contains only whitespace changes.