Skip to content

Commit

Permalink
Prepare Joomla! 5.1.0-alpha4
Browse files Browse the repository at this point in the history
  • Loading branch information
LadySolveig committed Feb 11, 2024
1 parent 6c636c9 commit 05bdf0b
Show file tree
Hide file tree
Showing 47 changed files with 206 additions and 26 deletions.
3 changes: 3 additions & 0 deletions administrator/components/com_banners/forms/banner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
<field
name="imageurl"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_BANNERS_FIELD_IMAGE_LABEL"
directory="banners"
hide_none="1"
Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_categories/forms/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@
<field
name="image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CATEGORIES_FIELD_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_config/forms/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,9 @@
<field
name="offline_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONFIG_FIELD_OFFLINE_IMAGE_LABEL"
showon="offline:1"
/>
Expand Down
24 changes: 24 additions & 0 deletions administrator/components/com_contact/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@
<field
name="image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
default=""
showon="show_info:1[AND]show_image:1"
Expand Down Expand Up @@ -410,6 +413,9 @@
<field
name="icon_address"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_ADDRESS_LABEL"
hide_none="1"
default=""
Expand All @@ -419,6 +425,9 @@
<field
name="icon_email"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_EMAIL_LABEL"
hide_none="1"
default=""
Expand All @@ -428,6 +437,9 @@
<field
name="icon_telephone"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_TELEPHONE_LABEL"
hide_none="1"
default=""
Expand All @@ -437,6 +449,9 @@
<field
name="icon_mobile"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_MOBILE_LABEL"
hide_none="1"
default=""
Expand All @@ -446,6 +461,9 @@
<field
name="icon_fax"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_FAX_LABEL"
hide_none="1"
default=""
Expand All @@ -455,6 +473,9 @@
<field
name="icon_webpage"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_WEBPAGE_LABEL"
hide_none="1"
default=""
Expand All @@ -464,6 +485,9 @@
<field
name="icon_misc"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_ICONS_MISC_LABEL"
hide_none="1"
default=""
Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_contact/forms/contact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
<field
name="image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
hide_none="1"
/>
Expand Down
6 changes: 6 additions & 0 deletions administrator/components/com_content/forms/article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@
name="image_intro"
type="media"
label="COM_CONTENT_FIELD_INTRO_LABEL"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
/>

<field
Expand Down Expand Up @@ -759,6 +762,9 @@
<field
name="image_fulltext"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTENT_FIELD_FULL_LABEL"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@
<?php echo $this->escape($row->author); ?>
</td>
<td class="d-none d-md-table-cell text-center">
<?php echo PunycodeHelper::emailToUTF8($this->escape($row->authorEmail)); ?>
<?php echo $this->escape(PunycodeHelper::emailToUTF8($this->escape($row->authorEmail))); ?>
</td>
<td class="d-none d-md-table-cell text-center">
<?php echo $this->escape($row->extension_id); ?>
<?php echo $this->escape(PunycodeHelper::emailToUTF8($row->extension_id)); ?>
</td>
</tr>
<?php endforeach; ?>
Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/item_alias.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/item_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/item_heading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/item_separator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/item_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/itemadmin_alias.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_menus/forms/itemadmin_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<field
name="menu_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
/>

Expand Down
6 changes: 6 additions & 0 deletions administrator/components/com_newsfeeds/forms/newsfeed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@
<field
name="image_first"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_NEWSFEEDS_FIELD_FIRST_LABEL"
/>

Expand Down Expand Up @@ -285,6 +288,9 @@
<field
name="image_second"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_NEWSFEEDS_FIELD_SECOND_LABEL"
/>

Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_tags/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<field
name="tag_list_image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_TAGS_TAG_LIST_MEDIA_LABEL"
/>

Expand Down
6 changes: 6 additions & 0 deletions administrator/components/com_tags/forms/tag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@
<field
name="image_intro"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_TAGS_FIELD_INTRO_LABEL"
/>

Expand Down Expand Up @@ -280,6 +283,9 @@
<field
name="image_fulltext"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_TAGS_FIELD_FULL_LABEL"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Joomla\CMS\User\User;
use Joomla\CMS\User\UserFactoryAwareInterface;
use Joomla\CMS\User\UserFactoryAwareTrait;
use Joomla\CMS\User\UserHelper;
use Joomla\Component\Users\Administrator\Helper\Mfa as MfaHelper;
use Joomla\Component\Users\Administrator\Model\BackupcodesModel;
use Joomla\Component\Users\Administrator\Model\MethodModel;
Expand Down Expand Up @@ -387,6 +388,9 @@ public function save($cachable = false, $urlparams = []): void
return;
}

// Method updated, destroy other active sessions
UserHelper::destroyUserSessions($userId, true);

$this->setRedirect($url);
}

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_users/tmpl/users/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
</a>
</td>
<td class="d-none d-xl-table-cell break-word">
<?php echo PunycodeHelper::emailToUTF8($this->escape($item->email)); ?>
<?php echo $this->escape(PunycodeHelper::emailToUTF8($this->escape($item->email))); ?>
</td>
<td class="d-none d-xl-table-cell">
<?php if ($item->lastvisitDate !== null) : ?>
Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/lib_joomla.ini
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ JLIB_FORM_VALIDATE_FIELD_INVALID="Invalid field: %s"
JLIB_FORM_VALIDATE_FIELD_REQUIRED="Field required: %s"
JLIB_FORM_VALIDATE_FIELD_RULE_MISSING="Validation Rule missing: %s"
JLIB_FORM_VALIDATE_FIELD_URL_SCHEMA_MISSING="Invalid URL: URL schema is missing in %1$s. Please add one of the following at the beginning: %2$s."
JLIB_FORM_VALIDATE_FIELD_URL_INJECTION_DETECTED="Invalid URL: A code injection has been detected in %1$s."
JLIB_FORM_VALUE_CACHE_APCU="APC User Cache"
JLIB_FORM_VALUE_CACHE_FILE="File"
JLIB_FORM_VALUE_CACHE_MEMCACHED="Memcached (Experimental)"
Expand Down
9 changes: 9 additions & 0 deletions administrator/templates/atum/templateDetails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
<field
name="loginLogo"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="TPL_ATUM_IMAGE_LABEL"
/>
<field
Expand All @@ -136,6 +139,9 @@
<field
name="logoBrandLarge"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="TPL_ATUM_IMAGE_LABEL"
/>
<field
Expand All @@ -154,6 +160,9 @@
<field
name="logoBrandSmall"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="TPL_ATUM_IMAGE_LABEL"
/>
<field
Expand Down
3 changes: 3 additions & 0 deletions components/com_contact/forms/form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
<field
name="image"
type="media"
schemes="http,https,ftp,ftps,data,file"
validate="url"
relative="true"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
hide_none="1"
/>
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/tmpl/contact/default_address.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
<dd>
<span class="contact-webpage">
<a href="<?php echo $this->item->webpage; ?>" target="_blank" rel="noopener noreferrer">
<?php echo PunycodeHelper::urlToUTF8($this->item->webpage); ?></a>
<?php echo $this->escape(PunycodeHelper::urlToUTF8($this->item->webpage)); ?></a>
</span>
</dd>
<?php endif; ?>
Expand Down
4 changes: 2 additions & 2 deletions components/com_contact/tmpl/contact/default_profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
$v_http = substr($profile->value, 0, 4);

if ($v_http === 'http') :
echo '<dd><a href="' . $profile->text . '">' . PunycodeHelper::urlToUTF8($profile->text) . '</a></dd>';
echo '<dd><a href="' . $profile->text . '">' . $this->escape(PunycodeHelper::urlToUTF8($profile->text)) . '</a></dd>';
else :
echo '<dd><a href="http://' . $profile->text . '">' . PunycodeHelper::urlToUTF8($profile->text) . '</a></dd>';
echo '<dd><a href="http://' . $profile->text . '">' . $this->escape(PunycodeHelper::urlToUTF8($profile->text)) . '</a></dd>';
endif;
break;

Expand Down
Loading

0 comments on commit 05bdf0b

Please sign in to comment.