You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2023/04/02 10:39:18 UTC

svn commit: r1908916 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java

Author: lehmi
Date: Sun Apr  2 10:39:18 2023
New Revision: 1908916

URL: http://svn.apache.org/viewvc?rev=1908916&view=rev
Log:
PDFBOX-5178: fixed condition, due to a hint of valerybokov

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java?rev=1908916&r1=1908915&r2=1908916&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java Sun Apr  2 10:39:18 2023
@@ -388,7 +388,7 @@ public abstract class BaseParser
                     && (nextThreeBytes[1] == '/' || nextThreeBytes[1] == '>')) //
                     || //
                     (nextThreeBytes[0] == ASCII_CR && nextThreeBytes[1] == ASCII_LF
-                            && nextThreeBytes[2] == '/' && nextThreeBytes[2] == '>') //
+                            && (nextThreeBytes[2] == '/' || nextThreeBytes[2] == '>')) //
             )
             {
                 braces = 0;