jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [include/] [bugtraq.php] - Diff between revs 1 and 3

Show entire file Ignore whitespace

Rev 1 Rev 3
Line 56... Line 56...
$enoughdata = false; $enoughdata = false;
while(!$enoughdata && (strpos($parent, "/") !== false)) { while(!$enoughdata && (strpos($parent, "/") !== false)) {
if (empty($this->msgstring)) $this->msgstring = $svnrep->getProperty($parent, 'bugtraq:message'); if (empty($this->msgstring)) $this->msgstring = $svnrep->getProperty($parent, 'bugtraq:message');
if (empty($this->logregex)) $this->logregex = $svnrep->getProperty($parent, 'bugtraq:logregex'); if (empty($this->logregex)) $this->logregex = $svnrep->getProperty($parent, 'bugtraq:logregex');
if (empty($this->urlstring)) $this->urlstring = $svnrep->getProperty($parent, 'bugtraq:url'); if (empty($this->urlstring)) $this->urlstring = $svnrep->getProperty($parent, 'bugtraq:url');
if (empty($this->append)) $this->append = ($svnrep->getProperty($parent, 'bugtraq:append') == "true"); if ($svnrep->getProperty($parent, 'bugtraq:append') == 'false') $this->append = false;
   
$parent = substr($parent, 0, -1); // Remove the trailing slash $parent = substr($parent, 0, -1); // Remove the trailing slash
$pos = strrpos($parent, "/"); // Find the last trailing slash $pos = strrpos($parent, "/"); // Find the last trailing slash
$parent = substr($parent, 0, $pos + 1); // Find the previous parent directory $parent = substr($parent, 0, $pos + 1); // Find the previous parent directory
$enoughdata = ((!empty($this->msgstring) || !empty($this->logregex)) && !empty($this->urlstring)); $enoughdata = ((!empty($this->msgstring) || !empty($this->logregex)) && !empty($this->urlstring));
Line 153... Line 153...
if ($this->logregex) { if ($this->logregex) {
$message = rtrim($message); $message = rtrim($message);
$line = ""; $line = "";
$allissues = ""; $allissues = "";
   
$lines = split("\n", $this->logregex); $lines = explode("\n", $this->logregex);
$regex_all = "~".$lines[0]."~"; $regex_all = "~".$lines[0]."~";
$regex_single = @$lines[1]; $regex_single = @$lines[1];
   
if (empty($regex_single)) { if (empty($regex_single)) {
// If the property only contains one line, then the pattern is only designed // If the property only contains one line, then the pattern is only designed

Powered by WebSVN 2.2.1