This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Image url wrong in db
#1

Hello Steven,


We logged in as admin and editing a comment I tried to include an image.

The wysiwyg editor gives a nice box in which you can enter the path/url to the image you wish to include.

You save the comment and visit the page on which the comment and thus the image should appear and you see NO IMAGE.

I logged into database and saw that the saved url in db had extra slashes within the < and >

I removed the faulty slashes in DB and the image appears on the page.

So I know the wysiwyg is faulty >> do you have a fix or can you point me to the file and line where this can be corrected ??
Reply
#2

Also I checked that editing in the comment box >> image function in source/html mode is not functional in wysiwyg.

Image altering is not stored in db.

Only by editing in database you can correct the image errors.
Reply
#3

Found the jquery file but cant put my finger on the fault.

Reply
#4

Hi,

Can you open /comments/admin/includes/auth.php

After this line:
PHP Code:
<?php 
if (!defined("IN_COMMENTICS")) { die("Access Denied."); }

Add this:
PHP Code:
<?php 
if (get_magic_quotes_gpc()) {
function
stripslashes_deep($value) {
if (
is_array($value)) {
$value = array_map('stripslashes_deep', $value);
} else if (
is_object($value)) {
$vars = get_object_vars( $value );
foreach (
$vars as $key=>$data) {
$value->{$key} = stripslashes_deep( $data );
}
} else {
$value = stripslashes($value);
}
return
$value;
}

$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}

Please let me know if it works.

Have you completed the interview?
Reply
#5

Super Steven

Your addition works just fine.

Thnx
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by nsuomine
02-Mar-2024, 05:00 PM
Last Post by Deparis
23-Jul-2014, 07:55 AM
Last Post by Looking
12-Jul-2011, 12:09 PM
Last Post by Steven
07-Jun-2011, 10:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)