Rev 1293 | Rev 1356 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1293 | Rev 1302 | ||
---|---|---|---|
Line 1102... | Line 1102... | ||
1102 | foreach ($asn1ids as $asn1id) { |
1102 | foreach ($asn1ids as $asn1id) { |
1103 | if (!oid_id_is_valid($asn1id)) { |
1103 | if (!oid_id_is_valid($asn1id)) { |
1104 | $errors[] = _L('Warning').' ['._L('OID %1',$dot_notation).']: '._L('Ignored alphanumeric identifier %1, because it is invalid',$asn1id); |
1104 | $errors[] = _L('Warning').' ['._L('OID %1',$dot_notation).']: '._L('Ignored alphanumeric identifier %1, because it is invalid',$asn1id); |
1105 | $this_oid_has_warnings = true; |
1105 | $this_oid_has_warnings = true; |
1106 | } else { |
1106 | } else { |
1107 | OIDplus::db()->query("delete from ###asn1id where oid = ? and name = ?", array($id, $asn1id)); |
1107 | OIDplus::db()->query("delete from ###asn1id where oid = ? and name = ?", array($id, $asn1id)); // Attention: Requires case-SENSITIVE database collation!! |
1108 | OIDplus::db()->query("insert into ###asn1id (oid, name) values (?, ?)", array($id, $asn1id)); |
1108 | OIDplus::db()->query("insert into ###asn1id (oid, name) values (?, ?)", array($id, $asn1id)); |
1109 | } |
1109 | } |
1110 | } |
1110 | } |
1111 | 1111 | ||
1112 | // --------------------------------------------------------------------- |
1112 | // --------------------------------------------------------------------- |
Line 1120... | Line 1120... | ||
1120 | foreach ($iris as $iri) { |
1120 | foreach ($iris as $iri) { |
1121 | if (!iri_arc_valid($iri, false)) { |
1121 | if (!iri_arc_valid($iri, false)) { |
1122 | $errors[] = _L('Warning').' ['._L('OID %1',$dot_notation).']: '._L('Ignored Unicode label %1, because it is invalid',$iri); |
1122 | $errors[] = _L('Warning').' ['._L('OID %1',$dot_notation).']: '._L('Ignored Unicode label %1, because it is invalid',$iri); |
1123 | $this_oid_has_warnings = true; |
1123 | $this_oid_has_warnings = true; |
1124 | } else { |
1124 | } else { |
1125 | OIDplus::db()->query("delete from ###iri where oid = ? and name = ?", array($id, $iri)); |
1125 | OIDplus::db()->query("delete from ###iri where oid = ? and name = ?", array($id, $iri)); // Attention: Requires case-SENSITIVE database collation!! |
1126 | OIDplus::db()->query("insert into ###iri (oid, name) values (?, ?)", array($id, $iri)); |
1126 | OIDplus::db()->query("insert into ###iri (oid, name) values (?, ?)", array($id, $iri)); |
1127 | } |
1127 | } |
1128 | } |
1128 | } |
1129 | } |
1129 | } |
1130 | 1130 |