Skip to content

Commit 2a50fc6

Browse files
authored
Use \r\n to split the new attributes (#841)
1 parent c21c45f commit 2a50fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/admin/editattributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<?php
6363

6464
if (isset($_POST['addnew'])) {
65-
$items = explode("\n", $_POST['itemlist']);
65+
$items = explode("\r\n", $_POST['itemlist']);
6666
$query = sprintf('select max(listorder) as listorder from %s', $table);
6767
$maxitem = Sql_Fetch_Row_Query($query);
6868
if (!Sql_Affected_Rows() || !is_numeric($maxitem[0])) {

0 commit comments

Comments
 (0)