Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #50308 (session id not appended properly for empty anchor tags) --EXTENSIONS-..

Decoded Output download

--TEST--
Bug #50308 (session id not appended properly for empty anchor tags)
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.name=PHPSESSID
session.save_handler=files
session.use_trans_sid=1
session.use_only_cookies=0
--FILE--
<?php
@session_start();
?>
<a href=""/>
<a href="" />
<a href="foo"/>
<a href="foo" />
<a href=foo/>
<a href="/">
<a href=/>
<a href=?foo=bar/>
<a href="?foo=bar"/>
<a href=./>
<a href="./">
--EXPECTF--
<a href="?PHPSESSID=%s"/>
<a href="?PHPSESSID=%s" />
<a href="foo?PHPSESSID=%s"/>
<a href="foo?PHPSESSID=%s" />
<a href=foo/?PHPSESSID=%s>
<a href="/?PHPSESSID=%s">
<a href=/?PHPSESSID=%s>
<a href=?foo=bar/&PHPSESSID=%s>
<a href="?foo=bar&PHPSESSID=%s"/>
<a href=./?PHPSESSID=%s>
<a href="./?PHPSESSID=%s">

Did this file decode correctly?

Original Code

--TEST--
Bug #50308 (session id not appended properly for empty anchor tags)
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.name=PHPSESSID
session.save_handler=files
session.use_trans_sid=1
session.use_only_cookies=0
--FILE--
<?php
@session_start();
?>
<a href=""/>
<a href="" />
<a href="foo"/>
<a href="foo" />
<a href=foo/>
<a href="/">
<a href=/>
<a href=?foo=bar/>
<a href="?foo=bar"/>
<a href=./>
<a href="./">
--EXPECTF--
<a href="?PHPSESSID=%s"/>
<a href="?PHPSESSID=%s" />
<a href="foo?PHPSESSID=%s"/>
<a href="foo?PHPSESSID=%s" />
<a href=foo/?PHPSESSID=%s>
<a href="/?PHPSESSID=%s">
<a href=/?PHPSESSID=%s>
<a href=?foo=bar/&PHPSESSID=%s>
<a href="?foo=bar&PHPSESSID=%s"/>
<a href=./?PHPSESSID=%s>
<a href="./?PHPSESSID=%s">

Function Calls

None

Variables

None

Stats

MD5 c7b324f3cb82cbbd2699455cd2aad586
Eval Count 0
Decode Time 69 ms