← Back to team overview

mahara-contributors team mailing list archive

[Bug 946880] Re: Broken html error message for no-reply email setting

 

The HTML of the warning message was escaped. The method that displays the messages has a default parameter for escape HTML as true.
The solution is to set to false the second parameter when that method is invoked:

Method definition on class Session.
public function add_error_msg($message, $escape=true) {

Method invocation on line 37 of file admin/upgrade.php
$SESSION->add_error_msg($w);
should be: $SESSION->add_error_msg($w,false);

** Attachment added: "upgrade.php"
   https://bugs.launchpad.net/mahara/+bug/946880/+attachment/3662020/+files/upgrade.php

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/946880

Title:
  Broken html error message for no-reply email setting

Status in Mahara ePortfolio:
  Triaged

Bug description:
  error message when upgrading from 1.4 to 1.5:

  The noreply address setting is either empty or has an invalid email
  address. Please check the configuration in the <a
  href="http://15stable/admin/site/options.php?fs=emailsettings";>site
  options in the email settings</a>.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/946880/+subscriptions


References