Changeset 1502

Show
Ignore:
Timestamp:
12/25/07 12:12:19 (1 year ago)
Author:
ewout
Message:

Do not strip slashes when displaying weblog posts (they were not added by elgg, they were put there by the user). Closes #165

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lib/displaylib.php

    r1319 r1502  
    229229            break; 
    230230        case "weblogtext": 
    231             $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$parameter[0]."\" style=\"width: 95%; height: 200px\">".htmlspecialchars(stripslashes($parameter[1]), ENT_COMPAT, 'utf-8')."</textarea>"; 
     231            $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$parameter[0]."\" style=\"width: 95%; height: 200px\">".htmlspecialchars($parameter[1], ENT_COMPAT, 'utf-8')."</textarea>"; 
    232232            break; 
    233233        default: 
  • devel/mod/blog/lib/weblogs_posts_edit.php

    r1498 r1502  
    8787                                'context' => 'databoxvertical', 
    8888                                'name' => $postBody, 
    89                                 'contents' => display_input_field(array("new_weblog_post",stripslashes($post->body),"weblogtext")) 
     89                                'contents' => display_input_field(array("new_weblog_post",$post->body,"weblogtext")) 
    9090                            ) 
    9191                            );